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

Gateway capability mask #1079

Closed
erkinalp opened this issue Jul 16, 2023 · 0 comments
Closed

Gateway capability mask #1079

erkinalp opened this issue Jul 16, 2023 · 0 comments

Comments

@erkinalp
Copy link
Contributor

erkinalp commented Jul 16, 2023

As documented at https://discord-userdoccers.vercel.app/topics/gateway#gateway-capabilities and extending from them:

Value Name Description
1 << 0 LAZY_USER_NOTES Removes the notes field from the Ready event,
1 << 1 NO_AFFINE_USER_IDS Prevents member/presence syncing and Presence Update events for implicit relationships
1 << 2 VERSIONED_READ_STATES Enables versioned read states, changing the read_state field in the Ready event to an object, allowing it to be cached when re-identifying
1 << 3 VERSIONED_USER_GUILD_SETTINGS Enables versioned user guild settings, changing the user_guild_settings field in the Ready event to an object, allowing it to be cached when re-identifying
1 << 4 DEDUPE_USER_OBJECTS Dehydrates the Ready payload, moving all user objects to the users field and replacing them in various places in the payload with user_id or recipient_id, and merging the members fields of all guilds into a single merged_members field
1 << 5 PRIORITIZED_READY_PAYLOAD Separates the Ready payload into two parts (Ready and Ready Supplemental) allowing the client to receive the Ready payload faster and then receive the rest of the payload later; depends on DEDUPE_USER_OBJECTS
1 << 6 MULTIPLE_GUILD_EXPERIMENT_POPULATIONS Changes the populations entry of guild_experiments in the Ready event to be an array of populations rather than a single population
1 << 7 NON_CHANNEL_READ_STATES Includes read states tied to non-channel resources (e.g. guild scheduled events and notification center) in the read_states field of the Ready event
1 << 8 AUTH_TOKEN_REFRESH Enables auth token refresh, allowing the client to optionally receive a new auth token in the auth_token field of the Ready event
1 << 9 USER_SETTINGS_PROTO Removes the user_settings field from the Ready event, and prevents User Settings Update events; the user_settings_proto field and User Settings Proto Update event is used instead
1 << 10 CLIENT_STATE_V2 Enables client state caching v2
1 << 11 PASSIVE_GUILD_UPDATE Enables passive guild updates, allowing the client to receive Passive Update v1 events instead of Channel Unreads Update events for guilds it is not subscribed to
1 << 12 CALL_SIGNALLING_OVER_WS Enables CALL_CREATE and CALL_DELETE events over WebSockets
1 << 13 BULK_REACTION_ADD_REMOVE Enables MESSAGE_REACTION_ADD_MANY and MESSAGE_REACTION_DELETE_MANY events
1 << 47 CUSTOM_START
1 << 48 NO_ECHO Do not send the connecting user's own events
1 << 49 LATENCY_COMPENSATION Actively try to compensate for network latency, aiming for a fixed latency rather than sending the events as fast as possible
1 << 50 LIVE_COMPOSITION_ENABLED Receive others' live composed messages. If not asserted, live-composed messages will be communicated as series of edits
1 << 51 PUBLIC_READ_RECEIPTS Send public read states
1 << 52 MULTI_GUILD_CHANNELS Changes channel property in the guild channels from a channel ID to an array of channel IDs
1 << 53 DEDUPE_MULTI_GUILD_MESSAGES De-dupe messages appearing in multiple channels due to custom message routing (#291)
1 <<63 FEDERATION_FORMAT Send the gateway response in S-S format (#1035)
@MaddyUnderStars MaddyUnderStars closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants