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:Jump to 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.
2 Replies
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.
(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)