Skip to content

Commit

Permalink
fix(reddit): disallow all mentions (botlabs-gg#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
l-zeuch authored Jun 3, 2021
1 parent 6d0c578 commit 840bd02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions reddit/redditbot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 840bd02

Please sign in to comment.