hikari-py/hikari

Handle unavailable guilds in GUILD_CREATE

davfsa opened this issue · 2 comments

Steps to reproduce

Join an unavailable guild

Expected result

Torn between fully ignoring the event or calling on_guild_delete so it dispatches a GuildUnavailableEvent

Actual result

image

System info

hikari (2.0.0.dev109) [HEAD]
located at /home/davfsa/coding/hikari/.venv/lib/python3.10/site-packages/hikari
CPython 3.10.0 GCC 10.2.1 20210110

Further info

No response

Checklist

  • I have made sure to remove ANY sensitive information (bot token, passwords, credentials, personal details, etc.).
  • I have searched the issue tracker and have made sure it's not a duplicate. If it is a follow up of another issue, I have specified it.

Waiting on discord/discord-api-docs#5054. For now the console might print out the error in the edge case where this can happen. Shouldn't disrupt normal bot behavior

Looks like it is intended, we will have to handle it then.

@FasterSpeeding should they be ignored or fire as a guild unvailable?