mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
fix(helpers): removeReaction
This commit is contained in:
@@ -18,7 +18,12 @@ export async function removeReaction(
|
||||
bot.rest,
|
||||
"delete",
|
||||
options?.userId
|
||||
? bot.constants.endpoints.CHANNEL_MESSAGE_REACTION_USER(channelId, messageId, reaction, options.userId)
|
||||
: bot.constants.endpoints.CHANNEL_MESSAGE_REACTION_ME(channelId, messageId, reaction)
|
||||
? bot.constants.endpoints.CHANNEL_MESSAGE_REACTION_USER(
|
||||
channelId,
|
||||
messageId,
|
||||
encodeURIComponent(reaction),
|
||||
options.userId
|
||||
)
|
||||
: bot.constants.endpoints.CHANNEL_MESSAGE_REACTION_ME(channelId, messageId, encodeURIComponent(reaction))
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user