Receive DM from user to Bot

This is how i check for DM:
// Receive DM from users
    if(msg.channel.type === d.ChannelType.DM) {
        console.log("We received a DM")
    }


This is my intents:

const client = new d.Client({intents: [
  d.GatewayIntentBits.Guilds, 
  d.GatewayIntentBits.DirectMessages,
  d.GatewayIntentBits.GuildMessages,
  d.GatewayIntentBits.MessageContent,
], partials: ['CHANNEL', 'MESSAGE', 'REACTION']})


Yet it dosn't respond to it? the if statement is inside "MessageCreate" i tried to search for answers here but all i found is peolpe missing intents witch i am not? (using latest version)
Was this page helpful?