fix: getReations by removing the double URI encode (#2438)

This commit is contained in:
Ean Milligan
2022-09-08 11:13:53 -05:00
committed by GitHub
parent ec91822a73
commit a5d960b5f1
+1 -1
View File
@@ -20,7 +20,7 @@ export async function getReactions(
const results = await bot.rest.runMethod<DiscordUser[]>( const results = await bot.rest.runMethod<DiscordUser[]>(
bot.rest, bot.rest,
"GET", "GET",
bot.constants.routes.CHANNEL_MESSAGE_REACTION(channelId, messageId, encodeURIComponent(reaction), options), bot.constants.routes.CHANNEL_MESSAGE_REACTION(channelId, messageId, reaction, options),
); );
return new Collection( return new Collection(