future: <Task finished name='Task-8' coro=<ConnectionState._delay_ready() done, defined at /home/kouranio/.local/lib/python3.9/site-packages/discord/state.py:418> exception=IndexError('list index out of range')>
Traceback (most recent call last):
File "/home/kouranio/.local/lib/python3.9/site-packages/discord/state.py", line 465, in _delay_ready
self.call_handlers('ready')
File "/home/kouranio/.local/lib/python3.9/site-packages/discord/state.py", line 234, in call_handlers
func(*args, **kwargs)
File "/home/kouranio/.local/lib/python3.9/site-packages/discord/client.py", line 284, in _handle_ready
str(guild.channels[0].id): [
IndexError: list index out of range
Expected Results
What is supposed to happen?
the script starts normally
Actual Results
What is currently happening?
it crashes but when i start the script again and again it works sometimes
System Info
Run python -m discord --version and paste the information below.
- Python v3.9.5-final
- discord.py v1.8.1-final
- aiohttp v3.7.4.post0
- system info: Linux 5.12.12-arch1-1 #1 SMP PREEMPT Fri, 18 Jun 2021 21:59:22 +0000
Checklist
Let's make sure this issue is valid!
[x] I am using the latest released version of the library.
[x] I am using a user token.
[x] I have shown the entire traceback and exception information.
[x] I've removed my token from any code.
Additional Information
Put any extra context, weird configurations, or other important info here.
Summary
A simple summary of the bug.
when i launch the script it crashes sometimes
Reproduction Steps
How did you make it happen?
Code
Relevant code that shows the bug.
Expected Results
What is supposed to happen?
the script starts normally
Actual Results
What is currently happening?
it crashes but when i start the script again and again it works sometimes
System Info
Run
python -m discord --version
and paste the information below.Checklist
Let's make sure this issue is valid!
Additional Information
Put any extra context, weird configurations, or other important info here.