Events.MessageCreate don't work
const { Events } = require('discord.js');
module.exports = {
name: Events.MessageCreate,
execute() {
console.log('message');
},
};
this event is successfully loaded but don't work. when i send message totally nothing was happening. 0 errors or something other
5 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPProbably missing intents or partials, where is this message being sent? And show your client constructor
Yeah, missing GuildMessages or DirectMessages and Channel partial depending on where the message was sent, also why do you have intents in the activities array
tysm, now its working