mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
lop
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { eventHandlers } from "../../bot.ts";
|
||||
import { addReaction } from "./add_reaction.ts";
|
||||
|
||||
/** 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 */
|
||||
@@ -13,6 +14,10 @@ export async function addReactions(
|
||||
);
|
||||
} else {
|
||||
for (const reaction of reactions) {
|
||||
eventHandlers.debug(
|
||||
"loop",
|
||||
"Running for of loop in addReactions function.",
|
||||
);
|
||||
await addReaction(channelId, messageId, reaction);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user