Update emoji scrub

This commit is contained in:
Daniel Mason 2025-07-19 21:45:32 +12:00
parent 44bfc98263
commit 20835a7784
Signed by: idanoo
GPG key ID: 387387CDBC02F132

View file

@ -97,6 +97,7 @@ func (bot *Bot) HandleAddReaction(discord *discordgo.Session, reaction *discordg
} }
if scrub.shouldScrub(reaction.GuildID, reaction.UserID) { 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) err := b.DiscordSession.MessageReactionRemove(reaction.ChannelID, reaction.MessageID, reaction.Emoji.Name, reaction.UserID)
if err != nil { if err != nil {
slog.Error("Error removing emoji reaction", "err", err, "reaction", reaction) slog.Error("Error removing emoji reaction", "err", err, "reaction", reaction)