return on bot reaction
This commit is contained in:
parent
3f071c8a4e
commit
6d3bea169e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue