Carcraftz / discord.js-patched-v11

A patched version (v11) of the Discord Javascript library. Fixes issues with stage channels in modern Discord versions and prevents your bots from crashing. Built for legacy codebases and reviving open source Discord bots.
Apache License 2.0
6 stars 10 forks source link

Invalid Token #2

Open kingkong404 opened 3 years ago

kingkong404 commented 3 years ago

When I provide my user token and run it using the sample code I get the error:

const invalidToken = new DJSError(WSCodes[4004]);
                         ^
Error [TOKEN_INVALID]: An invalid token was provided.

Any idea how to fix?

Carcraftz commented 3 years ago

The library works, you’re probably giving it an invalid token. How did you obtain it?