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
#Two questions
1 messages · Page 1 of 1 (latest)
const { Client }
How do I enable priveleged dm intent?
1.- Your first code wouldnt work in any djs version if you need to brush up your js fundamentals check #resources
2.- you need DIRECT_MESSAGES intent and CHANNEL partial
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