Why isn't messageCreate getting triggered?
the on ready is getting logged, but when i send messages, there's no response. why not?
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 OP[email protected]
node v16.17.0
do u send the messages in dms?
no, in a channel
I'm not able to recreate this, does the bot have access to view messages for the channel you're trying to send something in?
ah crap, I figured it out, i was using the wrong token so it was in different servers than i expected. the code is working as expected.
i should have done
client.guilds.cache.forEach(guild => {console.log('bot joined server:', guild.name);});
thanks for being my rubber duckies