How do i enable DM message detection?

I have 'messageCreate' listener on bot, but it does not seem to detect the messages received by the bot in dm.
Solution:
Assuming you followed the instructions from the second big red block on the guide: https://sapphirejs.dev/docs/Guide/getting-started/getting-started-with-sapphire You have to also enable the Channels partial https://discordjs.guide/popular-topics/partials.html#handling-partial-data...
Sapphire Framework
Getting started with Sapphire | Sapphire
To install Sapphire, you need to install both discord.js and
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Jump to solution
2 Replies
Solution
Favna
Favna8mo ago
Assuming you followed the instructions from the second big red block on the guide: https://sapphirejs.dev/docs/Guide/getting-started/getting-started-with-sapphire You have to also enable the Channels partial https://discordjs.guide/popular-topics/partials.html#handling-partial-data
Sapphire Framework
Getting started with Sapphire | Sapphire
To install Sapphire, you need to install both discord.js and
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Favna
Favna8mo ago
(or write your bot with slash commands instead which are far superior in every way and will work in DMs if you register them globally)
Want results from more Discord servers?
Add your server