What am I doing wrong? I keep getting
"const client = new discord.client();
^
TypeError: discord.client is not a constructor
at Object. (C:\Users\Shiloh\Desktop\DiscordBot\main.js:3:16)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47"
My code is
const Discord = require('discord.js');
const client = new Discord.Client();
client.once('ready', () => {
console.log('Shadow Bot is online');
});
client.login('BOTTOKENHERE);