async function addReactions(
  channelId,
  messageId,
  reactions,
  ordered = false,
) {
  if (!ordered) {
    await Promise.all(
      reactions.map((reaction) => addReaction(channelId, messageId, reaction)),
    );
  } else {
    for (const reaction of reactions) {
      eventHandlers.debug?.(
        "loop",
        "Running for of loop in addReactions function.",
      );
      await addReaction(channelId, messageId, reaction);
    }
  }
}
/** Adds multiple reactions to a message. If `ordered` is true(default is false), it will add the reactions one at a time in the order provided. Note: Reaction takes the form of **name:id** for custom guild emoji, or Unicode characters. Requires READ_MESSAGE_HISTORY and ADD_REACTIONS */
Adds multiple reactions to a message. If `ordered` is true(default is false), it will add the reactions one at a time in the order provided. Note: Reaction takes the form of **name:id** for custom guild emoji, or Unicode characters.
Adds multiple reactions to a message . If ` ordered ` is true ( default is false ) it will add the reactions one at a time in the order provided . Note : Reaction takes the form of ** name : id ** for custom guild emoji or Unicode characters .
async function addReactions(
  channelId,
  messageId,
  reactions,
  ordered = false,
) {
  if (!ordered) {
    await Promise.all(
      reactions.map((reaction) => addReaction(channelId, messageId, reaction)),
    );
  } else {
    for (const reaction of reactions) {
      eventHandlers.debug?.(
        "loop",
        "Running for of loop in addReactions function.",
      );
      await addReaction(channelId, messageId, reaction);
    }
  }
}
async function addReactions ( channelId , messageId , reactions , ordered = false , ) { if ( ! ordered ) { await Promise . all ( reactions . map ( ( reaction ) => addReaction ( channelId , messageId , reaction ) ) , ) ; } else { for ( const reaction of reactions ) { eventHandlers . debug ?. ( "loop" , "Running for of loop in addReactions function." , ) ; await addReaction ( channelId , messageId , reaction ) ; } } }
Adds multiple reactions to a message.
Adds multiple reactions to a message .