From a7dffbe5c6e5e37280a8e3fdf1f16b49c39b7a53 Mon Sep 17 00:00:00 2001 From: TriForMine Date: Fri, 21 Aug 2020 12:17:18 +0200 Subject: [PATCH] Update message.ts --- src/handlers/message.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/handlers/message.ts b/src/handlers/message.ts index 658d510d7..0be5147b4 100644 --- a/src/handlers/message.ts +++ b/src/handlers/message.ts @@ -109,6 +109,23 @@ export function removeReaction( ); } +/** Removes a reaction from the specified user on this message. Reaction takes the form of **name:id** for custom guild emoji, or Unicode characters. */ +export function removeUserReaction( + channelID: string, + messageID: string, + reaction: string, + userId: string +) { + RequestManager.delete( + endpoints.CHANNEL_MESSAGE_REACTION_USER( + channelID, + messageID, + reaction, + userId + ), + ); +} + /** Removes all reactions for all emojis on this message. */ export function removeAllReactions(channelID: string, messageID: string) { if (