discordjs / discord.js

A powerful JavaScript library for interacting with the Discord API
https://discord.js.org
Apache License 2.0
25.39k stars 3.97k forks source link

events not triggering #5873

Closed PineAppleGrits closed 3 years ago

PineAppleGrits commented 3 years ago

I'm trying to get reaction event but im not getting it, and im not getting it with 'raw' event neither. I'm using commando framework but i dont think that's affecting the intents. I tried to use the partials to see if it solves it, but it doesnt. I just dont get that event. My bot is in just one guild so it should work.

const Discord = require('discord.js');                                                                                  
const Commando = require('discord.js-commando');  
const client = new Commando.Client({
 partials: ['USER', 'GUILD_MEMBER', 'CHANNEL', 'MESSAGE', 'REACTION'],
    owner: clientOwner,
    commandPrefix: clientPrefix,
    disableEveryone: true,
    unknownCommandResponse: false
})  
client.on('messageReactionAdd', (reaction, user) => {
 console.log(reaction)
});
client.on('messageReactionRemove', (reaction, user) => {
console.log(reaction) 
})                           

Is there something that im missing? It should work. As i said, in raw event it doesnt triggers it neither with a recent message. Further details:

Relevant client options:

SpaceEEC commented 3 years ago

I'm unable to reproduce this issue (without using commando).

If you can only reproduce this while using commando, you want to head over to commando's issue tracker.

PineAppleGrits commented 3 years ago

Thank you i will try that. If it persist ill re-open.