Find answers from the community

Updated 3 months ago

Hi I am trying to load conversations

Hi, I am trying to load conversations from discord using the discord loader but I always get
Plain Text
---------------------------------------------------------------------------

HTTPException                             Traceback (most recent call last)

/usr/local/lib/python3.10/dist-packages/discord/http.py in static_login(self, token)
    802         try:
--> 803             data = await self.request(Route('GET', '/users/@me'))
    804         except HTTPException as exc:

10 frames

HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized


The above exception was the direct cause of the following exception:

LoginFailure                              Traceback (most recent call last)

/usr/local/lib/python3.10/dist-packages/discord/http.py in static_login(self, token)
    805             self.token = old_token
    806             if exc.status == 401:
--> 807                 raise LoginFailure('Improper token has been passed.') from exc
    808             raise
    809 

LoginFailure: Improper token has been passed.

Which token do I have to pass as an argument? I tried the one from the /api library Authrorisation header without success. Could me using google collab also be an issue?
L
T
B
3 comments
yea tbh I've never been able to get this loader to work. I just eneded up using some 3rd part program to download the messages from a channel into a json and parsed stuff out manually from there lol
Thats exactly what i am doing right now xd
having the same issue. any recommendations for other libs?
Add a reply
Sign up and join the conversation on Discord