This commit is contained in:
ITOH
2021-04-09 21:37:13 +02:00
parent 577010e953
commit 9312606100
26 changed files with 233 additions and 13 deletions
+5
View File
@@ -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);
}
}