mirror of
https://github.com/idanoo/GoDiscMoji
synced 2025-07-22 10:39:11 +00:00
Update emoji scrub
This commit is contained in:
parent
44bfc98263
commit
20835a7784
1 changed files with 1 additions and 0 deletions
|
@ -97,6 +97,7 @@ func (bot *Bot) HandleAddReaction(discord *discordgo.Session, reaction *discordg
|
|||
}
|
||||
|
||||
if scrub.shouldScrub(reaction.GuildID, reaction.UserID) {
|
||||
slog.Error("Scrubbed emoji reaction", "id", reaction.Emoji.ID, "name", reaction.Emoji.Name)
|
||||
err := b.DiscordSession.MessageReactionRemove(reaction.ChannelID, reaction.MessageID, reaction.Emoji.Name, reaction.UserID)
|
||||
if err != nil {
|
||||
slog.Error("Error removing emoji reaction", "err", err, "reaction", reaction)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue