From ccd12df99613d4f196c869cbe1337a7142068bba Mon Sep 17 00:00:00 2001 From: Ske Date: Sun, 31 Jan 2021 17:56:44 +0100 Subject: [PATCH] Fix removing original reaction --- PluralKit.Bot/Handlers/ReactionAdded.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PluralKit.Bot/Handlers/ReactionAdded.cs b/PluralKit.Bot/Handlers/ReactionAdded.cs index 36412bce..e14070f0 100644 --- a/PluralKit.Bot/Handlers/ReactionAdded.cs +++ b/PluralKit.Bot/Handlers/ReactionAdded.cs @@ -157,7 +157,6 @@ namespace PluralKit.Bot var guild = _cache.GetGuild(evt.GuildId!.Value); // Try to DM the user info about the message - // var member = await evt.Guild.GetMember(evt.User.Id); try { var dm = await _cache.GetOrCreateDmChannel(_rest, evt.UserId); @@ -220,7 +219,7 @@ namespace PluralKit.Bot private async Task TryRemoveOriginalReaction(MessageReactionAddEvent evt) { if (_bot.PermissionsIn(evt.ChannelId).HasFlag(PermissionSet.ManageMessages)) - await _rest.DeleteOwnReaction(evt.ChannelId, evt.MessageId, evt.Emoji); + await _rest.DeleteUserReaction(evt.ChannelId, evt.MessageId, evt.Emoji, evt.UserId); } } } \ No newline at end of file