INFO:discord.client:Cleaning up tasks.
INFO:discord.client:Cleaning up after 15 tasks.
Level 35:discord:Now logging in as Daily Quotes!
INFO:discord.client:All tasks finished cancelling.
INFO:discord.client:Closing the event loop.
Traceback (most recent call last):
File "/home/container/bot.py", line 707, in <module>
File "/home/container/.local/lib/python3.10/site-packages/discord/client.py", line 715, in run
return future.result()
File "/home/container/.local/lib/python3.10/site-packages/discord/client.py", line 694, in runner
await self.start(*args, **kwargs)
File "/home/container/.local/lib/python3.10/site-packages/discord/client.py", line 658, in start
await self.connect(reconnect=reconnect)
File "/home/container/.local/lib/python3.10/site-packages/discord/shard.py", line 462, in connect
raise item.error
File "/home/container/.local/lib/python3.10/site-packages/discord/shard.py", line 185, in worker
await self.ws.poll_event()
File "/home/container/.local/lib/python3.10/site-packages/discord/gateway.py", line 589, in poll_event
await self.received_message(msg.data)
File "/home/container/.local/lib/python3.10/site-packages/discord/gateway.py", line 539, in received_message
func(data)
File "/home/container/.local/lib/python3.10/site-packages/discord/state.py", line 635, in parse_auto_moderation_action_execution
event = AutoModActionExecutionEvent(self, data)
File "/home/container/.local/lib/python3.10/site-packages/discord/raw_models.py", line 462, in __init__
self.content: str = data["content"]
KeyError: 'content'
ERROR:asyncio:Unclosed client session
#Bot Crashing
1 messages · Page 1 of 1 (latest)
Please apply PR ##1521 (or update to master if you're unsure on how to implement)
So I should just uninstall pycord then reinstall py-cord?
To update to master, just run the following in the terminal:
pip install git+https://github.com/Pycord-Development/pycord.git
Make sure you have git install though
Thanks 🙂
You're welcome
That seemed to have fixed it
Cool, type /close to archive this thread then @rose breach
Kk