From 840bd02bb5db71b0eeaf74c1d426c08e885b4b5f Mon Sep 17 00:00:00 2001 From: Luca Z Date: Thu, 3 Jun 2021 19:53:57 +0200 Subject: [PATCH] fix(reddit): disallow all mentions (#950) --- reddit/redditbot.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reddit/redditbot.go b/reddit/redditbot.go index 7169eb81e2..9c919a9023 100644 --- a/reddit/redditbot.go +++ b/reddit/redditbot.go @@ -209,6 +209,9 @@ func (p *PostHandlerImpl) handlePost(post *reddit.Link, filterGuild int64) error SourceID: idStr, UseWebhook: true, WebhookUsername: webhookUsername, + AllowedMentions: discordgo.AllowedMentions{ + Parse: []discordgo.AllowedMentionType{}, + }, } if item.UseEmbeds {