Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unavailable guilds received on GUILD_CREATE #5054

Closed
davfsa opened this issue Jun 12, 2022 · 2 comments · Fixed by #5122
Closed

Unavailable guilds received on GUILD_CREATE #5054

davfsa opened this issue Jun 12, 2022 · 2 comments · Fixed by #5122

Comments

@davfsa
Copy link
Contributor

davfsa commented Jun 12, 2022

Description

Someone in our community reported a bug with receiving an unavailable guild on a GUILD_CREATE. I asked around and this has been possible for a while. I haven't had time up to now to have a proper look at it and noticed that the docs specifically state that this should not happen, a GUILD_DELETE should be fired instead.

Would just appreciate some more information on this and whether the documentation should be updated regarding this

Steps to Reproduce

I am uncertain how to reproduce it but all the info I have is that this happened when joining a guild in which a channel was being spammed (potentially making it unavailable).

Expected Behavior

Ideally, should behave according to the documentation (https://discord.com/developers/docs/topics/gateway#guild-create):

Guilds that are unavailable due to an outage will send a Guild Delete event.

Or the documentation should be updated to reflect it

Current Behavior

It seems to be possible to receive a GUILD_CREATE with the payload of a GUILD_DELETE.

Screenshots/Videos

image

Client and System Information

N/A

@night
Copy link
Contributor

night commented Jun 23, 2022

This behavior is not a bug and is working as intended. We could improve documentation to further clarify this behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@night @davfsa and others