Python
1Traceback (most recent call last): 2 File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/discord/http.py", line 300, in static_login 3 data = await self.request(Route('GET', '/users/@me')) 4 File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/discord/http.py", line 254, in request 5 raise HTTPException(r, data) 6discord.errors.HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized 7 8The above exception was the direct cause of the following exception: 9 10Traceback (most recent call last): 11 File "/Users/a/discordBot/KINKIN/KinKinBot.py", line 19, in <module> 12 client.run("とーくん") 13 File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/discord/client.py", line 723, in run 14 return future.result() 15 File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/discord/client.py", line 702, in runner 16 await self.start(args, **kwargs) 17 File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/discord/client.py", line 665, in start 18 await self.login(args, bot=bot) 19 File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/discord/client.py", line 511, in login 20 await self.http.static_login(token.strip(), bot=bot) 21 File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/discord/http.py", line 304, in static_login 22 raise LoginFailure('Improper token has been passed.') from exc 23discord.errors.LoginFailure: Improper token has been passed.
全く分からないので何も試せていません。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/04/14 12:36 編集