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
souji
soujiβ€’3y ago
you need the MessageContent and DirectMessages intent as well as the CHANNEL partial enabled
π•―π–”π–‰π–”π•Ύπ–Šπ–†π–‘
How do I add partials to the client?
π•―π–”π–‰π–”π•Ύπ–Šπ–†π–‘
Are partials a new update? In the past week I have been able to receive bot DMs.
duck
duckβ€’3y ago
I believe partials were introduced in v12
π•―π–”π–‰π–”π•Ύπ–Šπ–†π–‘
Also, checking the channel.type === 'dm' isn't working anymore?
monbrey
monbreyβ€’3y ago
Import the ChannelType enum and use ChannelType.DM
Unknown User
Unknown Userβ€’3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server