message: fix(handlers): support for custom emoji in reaction remove functions
diff: @@ -152,6 +152,12 @@ export function removeReaction(
  messageID: string,
  reaction: string,
  ) {
  + if (reaction.startsWith("<:")) {
  + reaction = reaction.substring(2, reaction.length - 1);
  + } else if (reaction.startsWith("<a:")) {
  + reaction = reaction.substring(3, reaction.length - 1);
  + }
  +
  return RequestManager.delete(
  endpoints.CHANNEL_MESSAGE_REACTION_ME(
  channelID,
  @@ -176,6 +182,12 @@ export async function removeUserReaction(
  throw new Error(Errors.MISSING_MANAGE_MESSAGES);
  }
  + if (reaction.startsWith("<:")) {
  + reaction = reaction.substring(2, reaction.length - 1);
  + } else if (reaction.startsWith("<a:")) {
  + reaction = reaction.substring(3, reaction.length - 1);
  + }
  +
  return RequestManager.delete(
  endpoints.CHANNEL_MESSAGE_REACTION_USER(
  channelID,
  @@ -217,6 +229,13 @@ export async function removeReactionEmoji(
  ) {
  throw new Error(Errors.MISSING_MANAGE_MESSAGES);
  }
  +
  + if (reaction.startsWith("<:")) {
  + reaction = reaction.substring(2, reaction.length - 1);
  + } else if (reaction.startsWith("<a:")) {
  + reaction = reaction.substring(3, reaction.length - 1);
  + }
  +
  return RequestManager.delete(
  endpoints.CHANNEL_MESSAGE_REACTION(channelID, messageID, reaction),
  );
  