From 7bb51f6167fa986b65a104cc44f72325b6b7efa8 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sun, 24 Jul 2022 00:29:49 +0100 Subject: [PATCH] Remove user reactions (#18) --- Hammer/Services/UserReactionService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Hammer/Services/UserReactionService.cs b/Hammer/Services/UserReactionService.cs index 42418fc..6467e06 100644 --- a/Hammer/Services/UserReactionService.cs +++ b/Hammer/Services/UserReactionService.cs @@ -47,6 +47,9 @@ private async Task DiscordClientOnMessageReactionAdded(DiscordClient sender, Mes ReactionConfiguration reactionConfiguration = guildConfiguration.Reactions; string reaction = e.Emoji.GetDiscordName(); if (reaction == reactionConfiguration.ReportReaction) + { + await e.Message.DeleteReactionAsync(e.Emoji, e.User).ConfigureAwait(false); await _messageReportService.ReportMessageAsync(e.Message, (DiscordMember) e.User).ConfigureAwait(false); + } } }