fix(helpers): removeReaction

This commit is contained in:
ITOH
2021-11-13 17:42:50 +01:00
parent e03ec5134d
commit 1912e4e242

View File

@@ -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))
);
}