messageCreate isn't firing when bot receives a DM
The bot used to respond to commands, even if the channel was a DM. Now it doesn't even fire the messageCreate event. Does anybody know how to fix this?
9 Replies
you need the MessageContent and DirectMessages intent as well as the CHANNEL partial enabled
How do I add partials to the client?
https://discord.js.org/#/docs/discord.js/14.0.1/typedef/ClientOptions
partials key, quite verbosely named
Are partials a new update? In the past week I have been able to receive bot DMs.
I believe partials were introduced in v12
Also, checking the
channel.type === 'dm'
isn't working anymore?Import the
ChannelType
enum and use ChannelType.DM
Okay
Unknown Userβ’3y ago
Message Not Public
Sign In & Join Server To View