I want to make a discord bot using javascript but when I try to run it , I get the error "[Symbol(code)]: 'TOKEN_INVALID'". I double checked to see if my token is correct and I even regenerated it for a few times but to no avail. Here is my code:
client.on("ready", () => {
console.log(`Logged in as ${client.user.tag}!`);
client.login(process.env.CLIENT_TOKEN);
And here is my .env file:
CLIENT_TOKEN='token'
Note: Im new to javascript so try to explain it noob friendly please.