Message collector not working
I'm configuring my bot so that it will respond to the slash command
/validate
by creating a new thread and asking the user to post their email.
This is my the function that is called when the slash command is invoked.
The thread is successfully created, but the message collector just won't work. It doesn't return any errors anything, but it doesn't respond to any messages in the channel. The "For debugging" console.log is not printed. I don't know what I'm doing wrong here, any advice would be appreciated.7 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 OPdo you have the Guilds, GuildMessages and MessageContent intent
I just double checked and it does
Just to make sure, try to create a messageCreate event handler and see if that catches the message.
an event handler for this isn't working either, so I guess it is an issue with it reading messages? I have it added as an administrator, and all the guild intents enabled, so I don't know why it wouldn't be able to read messages
For reference this is the event handler I made:
and where are the intents in your client constructor
this was it, I wasn't listing the intents in the client constructor
thank you guys for your help