messageCreate not working with DMs
Greetings! I'm having troubles getting the
messageCreate
event to run with DMs. When I send a server message it all works well, but in DMs it simply refuses to work.
listeners/messageCreate.ts
:
Intents in client constructor:
I've also tripled checked whether the message intent is enabled in developer dashboard4 Replies
Enable the channel partial in your client options https://old.discordjs.dev/#/docs/discord.js/main/typedef/Partials
Discord.js
Discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
And as the links above show, this is discordjs related. Not sapphire.
That did the trick, thanks! I didn't know what the exact problem was so I wasn't sure whether to post here or elsewhere, apologies