Direct Messages Not Receiving

My discord bot does not see or recieve direct messages, I have partials on and all the intents logging and error checking but i still get nothing const client = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMessageReactions, GatewayIntentBits.GuildMembers, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMessageTyping, GatewayIntentBits.DirectMessages, GatewayIntentBits.DirectMessageReactions, GatewayIntentBits.DirectMessageTyping ], partials: [Partials.Message, Partials.Channel, Partials.Reaction], });
4 Replies
d.js toolkit
d.js toolkitβ€’9mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Lex
Lexβ€’9mo ago
14.13.0 ds.js, v18.12.1 node. No errors, But heres the code im using to try and see the messages. I made chatgpt // everything to make it easier for yall,
πŸŒΊπŸ‡«πŸ‡· Shigu :3 🌺
A DM channel's type isn't dm so you're always returning even though you might be getting actual DM messages. You can either use the ChannelType enum or return if message.inGuild() is true.
Lex
Lexβ€’9mo ago
Okay thanks alot, I think i got it. That went over my head πŸ’€