change: prettier code

This commit is contained in:
Skillz4Killz
2021-10-30 15:22:36 +00:00
committed by GitHub Action
parent 3a02c3fa09
commit 8da924e02d
5 changed files with 15 additions and 9 deletions
+4 -4
View File
@@ -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);