mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
change: prettier code
This commit is contained in:
committed by
GitHub Action
parent
3a02c3fa09
commit
8da924e02d
@@ -6,7 +6,7 @@ export async function addReactionTest(
|
||||
bot: Bot,
|
||||
guildId: bigint,
|
||||
channelId: bigint,
|
||||
options: { custom: boolean; single: boolean, ordered: boolean; },
|
||||
options: { custom: boolean; single: boolean; ordered: boolean },
|
||||
t: Deno.TestContext
|
||||
) {
|
||||
const message = await bot.helpers.sendMessage(channelId, "Hello World!");
|
||||
@@ -60,13 +60,13 @@ export async function addReactionTest(
|
||||
}
|
||||
|
||||
let reactions = 0;
|
||||
|
||||
|
||||
bot.events.reactionAdd = function (bot, payload) {
|
||||
if (payload.messageId !== message.id) return;
|
||||
|
||||
|
||||
reactions++;
|
||||
};
|
||||
|
||||
|
||||
if (options.single) await bot.helpers.addReaction(message.channelId, message.id, emojiId);
|
||||
else await bot.helpers.addReactions(message.channelId, message.id, emojiIds, options.ordered);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user