8000 Decode unknown channel, overwrite, webhook, integration and command types instead of failing by merlinfuchs · Pull Request #644 · disgoorg/disgo · GitHub
[go: up one dir, main page]

Skip to content

Decode unknown channel, overwrite, webhook, integration and command types instead of failing - #644

Merged
topi314 merged 3 commits into
disgoorg:masterfrom
merlinfuchs:merlin/unknown-types
Nov 5, 2026
Merged

topi314 merged 3 commits into
disgoorg:masterfrom
merlinfuchs:merlin/unknown-types

Conversation

@merlinfuchs
@merlinfuchs merlinfuchs commented Nov 5, 2026 •
Copy link
Copy Markdown
Contributor

Decoding a channel, permission overwrite, webhook, integration, application command, command option or command permission with a type disgo doesn't know now returns an Unknown* value, the same way UnknownComponent works, instead of an error.

On Nov 5 Discord started sending channels with type 20 in GUILD_CREATE. UnmarshalChannel errored and failed the whole dispatch. The gateway treats that as a read error and resumes, Discord replays the same event, and the shard loops until the token is reset.

This doesn't change how the gateway handles a dispatch that fails to decode. Any other parse error still causes the same reconnect loop.

@merlinfuchs
Copy link
Copy Markdown
Contributor Author

Maybe the gateway code should generally not reconnect on a decode error 🤔

@biast12
biast12 commented Nov 5, 2026
Copy link
Copy Markdown

Omg so that's what has been killing my gateway 😭

@rbrabson
rbrabson commented Nov 5, 2026
Copy link
Copy Markdown

Like I suspect many others, my bot is down awaiting a fix.

@topi314
topi314 merged commit bacdc22 into disgoorg:master Nov 5, 2026
4 checks passed
@topi314
topi314 commented Nov 5, 2026
Copy link
Copy Markdown
Member

lol yeah, that's a fail
seems like that was a more recent change to go into the error logic in that case oof
see: #476

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

Development

Successfully merging this pull request may close these issues.

4 participants

0