return on bot reaction

This commit is contained in:
kenobi 2023-06-27 20:23:22 +02:00
parent 3f071c8a4e
commit 6d3bea169e

View File

@ -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