Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idk what to title it #372

Open
Ubvta opened this issue Feb 11, 2023 · 4 comments
Open

Idk what to title it #372

Ubvta opened this issue Feb 11, 2023 · 4 comments

Comments

@Ubvta
Copy link

Ubvta commented Feb 11, 2023

I get this error:

C:\Users\beyon\Downloads\DiscordBot>luvit bot.lua
2023-02-11 06:53:42 | [INFO] | Discordia 2.11.2
2023-02-11 06:53:42 | [INFO] | Connecting to Discord...
2023-02-11 06:53:42 | [ERROR] | 401 - Unauthorized : GET https://discord.com/api/v8/users/@me
2023-02-11 06:53:42 | [ERROR] | Could not authenticate, check token: HTTP Error 0 : 401: Unauthorized

@weslleyxm
Copy link

There seems to be something wrong with your token

@Corotyest
Copy link

I highly doubt it as with persistence I get this error. In fact, it "fixes" if, on the contrary, you restart the execution, that is; running your project again.

However, I want to emphasize that this in hosting servers ends the execution and does not restart automatically, so it is a very peculiar problem.

@truemedian
Copy link
Contributor

HTTP Error 401: Unauthorized always means you have an invalid token. Make sure that the token is prefixed with "Bot " (eg. Bot AB.CD.EF).

@exatron2300
Copy link

HTTP Error 401: Unauthorized always means you have an invalid token. Make sure that the token is prefixed with "Bot " (eg. Bot AB.CD.EF).

I also have the exact same issue. I re generated my token many times, to paste it back into my code, and I still had the same issue. I also correctly added "Bot " before my token, like this : "Bot MY_TOKEN_HERE". I don't know what to do anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants