Skip to content

Channel Obfuscation - #2574

Open
raventhyme wants to merge 2 commits into
twilight-rs:mainfrom
raventhyme:channel-obfuscation-api
Open

Channel Obfuscation#2574
raventhyme wants to merge 2 commits into
twilight-rs:mainfrom
raventhyme:channel-obfuscation-api

Conversation

@raventhyme

Copy link
Copy Markdown
Member

Implement Discord's new Channel Obfuscation API. Channel Obfuscation obfuscates most details about guild channels that a user does not have access to when received over the gateway; when received over the HTTP API the user does not receive the channel at all. Channels that have been obfuscated have a new "CHANNEL_OBFUSCATED" channel flag set on them.

Documentation has been added to the model crate's Channel and ChannelUpdate types.

Channel Obfuscation may be opted in to via a new "capabilities" field on gateway identification.

To opt-in when connecting to the gateway users may use the new capabilities method on the gateway's Config.

Closes issue #2573.

References:

Implement Discord's new Channel Obfuscation API. Channel Obfuscation
obfuscates most details about guild channels that a user does not have
access to when received over the gateway; when received over the HTTP
API the user does not receive the channel at all. Channels that have
been obfuscated have a new "CHANNEL_OBFUSCATED" channel flag set on
them.

Documentation has been added to the model crate's `Channel` and
`ChannelUpdate` types.

Channel Obfuscation may be opted in to via a new "capabilities"
field on gateway identification.

To opt-in when connecting to the gateway users may use the new
`capabilities` method on the gateway's `Config`.

Closes issue twilight-rs#2573.
@raventhyme raventhyme added t-feature Addition of a new feature c-http Affects the http crate c-model Affects the model crate c-gateway Affects the gateway crate d-api Change related to Discord's API. labels Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c-gateway Affects the gateway crate c-http Affects the http crate c-model Affects the model crate d-api Change related to Discord's API. t-feature Addition of a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant