Help me! I have a big problem with creating my discord bot

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 :blush:

const Discord = require(‘discord.js’);

const client = new Discord.client();

client.once(‘ready’) , () => {

  console.log('Il bot è online!');



try Discord.Client();

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.