I'm still learning the ropes of javascript, and while attempting to link discord with VSCode (using windows powershell), I'm using the following code:
const Discord = require (discord.js) ;
const client = new Discord.Client();
client.once;ready ; () => {
console.log ;Ready ;
};
client.login (discord-bot-token);
As you can see, I'm working on creating a discord bot. However, when I try to execute node index.js
in powershell, I constantly encounter the error discord is not defined
related to discord.js. I have the bot token included, but I'm not comfortable sharing that.