#Two questions

1 messages · Page 1 of 1 (latest)

wispy raft
#

Why does const Client = require('discord.js'); and then const client = new Client(...), but not const Discord = require('discord.js'); and then const client = new Discord.Client(...), how it used to work for me all the time. My second question is, how does a bot receive dm messages, because on('messageCreate'...) is not working for me

uneven frost
#

const { Client }

wispy raft
#

How do I enable priveleged dm intent?

astral burrow
wispy raft
#

Thank you @astral burrow Yes I need some more knowledge on discord js v 13, because I liked version 12 so much and had all my wonderful bots there