async function removeReactionEmoji(
  channelId,
  messageId,
  reaction,
) {
  await requireBotChannelPermissions(channelId, [
    "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 await rest.runMethod(
    "delete",
    endpoints.CHANNEL_MESSAGE_REACTION(channelId, messageId, reaction),
  );
}
/** Removes all reactions for a single emoji on this message. Reaction takes the form of **name:id** for custom guild emoji, or Unicode characters. */
Removes all reactions for a single emoji on this message. Reaction takes the form of **name:id** for custom guild emoji, or Unicode characters.
Removes all reactions for a single emoji on this message . Reaction takes the form of ** name : id ** for custom guild emoji or Unicode characters .
async function removeReactionEmoji(
  channelId,
  messageId,
  reaction,
) {
  await requireBotChannelPermissions(channelId, [
    "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 await rest.runMethod(
    "delete",
    endpoints.CHANNEL_MESSAGE_REACTION(channelId, messageId, reaction),
  );
}
async function removeReactionEmoji ( channelId , messageId , reaction , ) { await requireBotChannelPermissions ( channelId , [ "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 await rest . runMethod ( "delete" , endpoints . CHANNEL_MESSAGE_REACTION ( channelId , messageId , reaction ) , ) ; }
Removes all reactions for a single emoji on this message.
Removes all reactions for a single emoji on this message .