prefix command not working
I tried to add the commands in separate files, but it did not turn out to be comfortable for me, it also did not work, so I wanted to add them in the same index, it turns out that it does not work either, I chose to add a console.log to see if the client.on ('messageCreate') was executed correctly, someone help me?
13 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.its messageCreate
and you need the GuildMessages and MessageContent intent
You also need
GuildMessage
and MessageContent
intentsand activity is set with the ActivityType enum, and iirc type property
the activity is fine
not really
How do I add that?
add them in your client cosntructor
and enable them in the dev portal
like this?:
no, do it the same way you did for guilds
this is basic js at this point
the code is exactly like this, how do I add?
or where it is added?
GatewayIntentBits.<intent>