Invalid Token Error
How do I fix this error:
I have already reset the token, I have already console logged the typeof token which is a string and I have consoled log the token itself which returns with the correct token.
6 Replies
I have found out that the Level System in my index.js (https://sourceb.in/fWWNg1C0ZC) was the issue. If anyone can let me know where or how I need to implement the Level System in the index.js, that would be great.
client.login('messageCreate', async message => {
this shouldnt be a client.login call
which is why that wouldve caused thatwhat should it be
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Solution
you should be using "client.on" or "client.once" for events
Omg that simple lol
I'm sory for wasting ur time, ty