const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildBans,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildInvites,
GatewayIntentBits.MessageContent,
GatewayIntentBits.DirectMessages,
],
});
module.exports = {
name: 'messageCreate',
async execute(message) {
try {
if(message.channel.type === ChannelType.DM) {
console.log(message.content)
} else {
console.log('not a dm')
}
}```
hello i did set the DirectMessages intent. but the dm messages are still not working. "not a dm" does get logged for guild messages