discord.py-self: [BUG] Hacky OPCode 14 fails with unavailable guilds

I get this error when running the code

Task exception was never retrieved
future: <Task finished name='Task-8' coro=<ConnectionState._delay_ready() done, defined at C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\state.py:418> exception=IndexError('list index out of range')>
Traceback (most recent call last):
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\state.py", line 465, in _delay_ready
    self.call_handlers('ready')
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\state.py", line 234, in call_handlers
    func(*args, **kwargs)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 301, in _handle_ready
    str(guild.channels[0].id): [
IndexError: list index out of range

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (9 by maintainers)

Commits related to this issue

Most upvoted comments

@caiocinel It seems to work now. Can you git pull and try again?

I redid the tests and apparently it was fixed 😃