Please describe the problem you are having in as much detail as possible:
Include a reproducible code sample here, if possible:
client.login('my_token');
Further details:
For some reason I get this error on discord 12.
Error [TOKEN_INVALID]: An invalid token was provided.
But it's fine on discord 11.
Are you sure that you are providing a bot token and not a user token ?
Support for user accounts was dropped in v12 as they do not respect Discord Terms of Service.
You must use a bot account token in order to use the library.
😋👢
Most helpful comment
Are you sure that you are providing a bot token and not a user token ?