8000 fix(cache): replace voice states and presences on guild create by yokkkoso · Pull Request #647 · disgoorg/disgo · GitHub
[go: up one dir, main page]

Skip to content

fix(cache): replace voice states and presences on guild create - #647

Open
yokkkoso wants to merge 1 commit into
disgoorg:masterfrom
yokkkoso:fix/guild-create-stale-voice-states
Open

yokkkoso wants to merge 1 commit into
disgoorg:masterfrom
yokkkoso:fix/guild-create-stale-voice-states

Conversation

@yokkkoso
@yokkkoso yokkkoso commented Nov 7, 2026
Copy link
Copy Markdown
Contributor

GUILD_CREATE carries the complete voice states and presences of the guild, but the handler only added them, so members who left voice or went offline while the guild was unavailable or the session was re-identified stayed in the cache

The handler now clears both caches for the guild before adding the ones from the event: https://discord.com/developers/docs/events/gateway-events#guild-create

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.

1 participant

0