mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
optimize reactions
This commit is contained in:
@@ -75,6 +75,12 @@ export function addReaction(
|
|||||||
throw new Error(Errors.MISSING_READ_MESSAGE_HISTORY);
|
throw new Error(Errors.MISSING_READ_MESSAGE_HISTORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (reaction.startsWith("<:")) {
|
||||||
|
reaction = reaction.substring(2, reaction.length - 1);
|
||||||
|
} else if (reaction.startsWith("<a:")) {
|
||||||
|
reaction = reaction.substring(3, reaction.length - 1);
|
||||||
|
}
|
||||||
|
|
||||||
return RequestManager.put(
|
return RequestManager.put(
|
||||||
endpoints.CHANNEL_MESSAGE_REACTION_ME(
|
endpoints.CHANNEL_MESSAGE_REACTION_ME(
|
||||||
channelID,
|
channelID,
|
||||||
|
|||||||
Reference in New Issue
Block a user