Channel Obfuscation - #2574
Open
raventhyme wants to merge 2 commits into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
ChannelandChannelUpdatetypes.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
capabilitiesmethod on the gateway'sConfig.Closes issue #2573.
References: