From 6d3bea169eee318d1e688d5ffe788cdaf1434700 Mon Sep 17 00:00:00 2001 From: kenobi Date: Tue, 27 Jun 2023 20:23:22 +0200 Subject: [PATCH] return on bot reaction --- server/events/handleMessageReactionAdd.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/events/handleMessageReactionAdd.ts b/server/events/handleMessageReactionAdd.ts index 1820b93..48a8883 100644 --- a/server/events/handleMessageReactionAdd.ts +++ b/server/events/handleMessageReactionAdd.ts @@ -8,8 +8,10 @@ import { client } from "../.."; export const name = 'messageReactionAdd' export async function execute(messageReaction: MessageReaction, user: User) { - if (user.id == client.user?.id) + if (user.id == client.user?.id) { logger.info('Skipping bot reaction') + return + } const requestId = newRequestId() const guildId = messageReaction.message.inGuild() ? messageReaction.message.guildId : noGuildId const reactedUponMessage: Message = messageReaction.message.partial ? await messageReaction.message.fetch() : messageReaction.message