Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

How do I fix this?

Broken7Axel
Broken7Axel

I'm making a discord bot and I don't know that much about python so here is my error msg.

File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/http.py", line 300, in static_login
data = await self.request(Route('GET', '/users/@me'))
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/http.py", line 254, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized

1 year ago

Voters

Comments

TopNew
1
dud1ncas
dud1ncas

answer

you need to disable public bot in Authorization flow.It worked for me when i had the same problem

1 year ago
1
dud1ncas
dud1ncas

Hope i helped

1 year ago
1

i have same error

1 year ago
1
Coder100
Coder100

confirm that the token you inputted was correct. try doing print(os.getenv('TOKEN'))

1 year ago
1
Broken7Axel
Broken7Axel

@Coder100
I did what you said and it printed my discord token back to me but I still got the error msg

1 year ago
Load more