Skip to content

Commit

Permalink
Remove user reactions (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Jul 23, 2022
1 parent daf3edd commit 7bb51f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Hammer/Services/UserReactionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit 7bb51f6

Please sign in to comment.