Was expecting to send a message, but got error code 0. However, the user account is not rate limited as I can still send messages properly. I stopped the bot for a day, but the error still continues.
ERROR:asyncio:_ClientEventTask exception was never retrieved
future: <ClientEventTask state=finished event=on_message coro=<function on_message at 0x7f89e0349670> exception=AttributeError("'str' object has no attribute '__traceback__'")>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/discord/client.py", line 301, in _run_event
await coro(*args, **kwargs)
File "<ipython-input-5-f6c5c8aa25f4>", line 580, in on_message
await channel.send(fine_tune(random.choice(starter_phrases)), file=discord.File(recruit_banner))
File "/usr/local/lib/python3.9/dist-packages/discord/abc.py", line 1041, in send
data = await state.http.send_files(channel.id, files=[file], allowed_mentions=allowed_mentions,
File "/usr/local/lib/python3.9/dist-packages/discord/http.py", line 302, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 400 Bad Request (error code: 0)
System Information
discord.py-self==1.9.2
python 3.9
Checklist
[X] I have searched the open issues for duplicates.
[X] I have shared the entire traceback.
[X] I am using a user token (and it isn't visible in the code).
Summary
Was expecting to send a message, but got error code 0. However, the user account is not rate limited as I can still send messages properly. I stopped the bot for a day, but the error still continues.
Reproduction Steps
Code
No response
Expected Results
Message sent
Actual Results
System Information
discord.py-self==1.9.2 python 3.9
Checklist
Additional Information
No response