Help with bot creation

Hello. Maybe you’ll answer this kind of topic a billion times, but which code is a code. Well, getting to the point, i’m trying to develope a bot for my discord server, but i can’t get it online, the most simple text, my text is:

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

const bot = new Discord.client();

const token = ‘999999999999999999999999999999999999’;

bot.login(token)

there is more, but the error is in the Discord.client part, i have done all the token and ID thing in the discord sites, but when i do the node. command, i get this message on the terminal:

TypeError: Discord.client is not a constructor
at Object. (C:\Users\Demon\OneDrive\Área de Trabalho\Bot\index.js:3:13)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47

so if someone can help me, i’ll be pleased, thank you’ll already.

Capital C

const bot = new Discord.Client();
2 Likes