#dms to bot not received

1 messages · Page 1 of 1 (latest)

heady sable
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