Good evening I am trying to create a discord bot for the first time but when I run in the console
node .
I get this error:
TypeError: Discord.client is not a constructor
Good evening I am trying to create a discord bot for the first time but when I run in the console
node .
I get this error:
TypeError: Discord.client is not a constructor
It would be nice if you could share to your code
const Discord = require(‘discord.js’);
const client = new Discord.client();
client.once(‘ready’) , () => {
console.log('Il bot è online!');
}
client.login(’*********************************************’)
try Discord.Client();
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.