Skip to content

feat(channel): improve support for obfuscated channels - #1598

Open
shiftinv wants to merge 16 commits into
masterfrom
feature/channel-obfuscation
Open

feat(channel): improve support for obfuscated channels#1598
shiftinv wants to merge 16 commits into
masterfrom
feature/channel-obfuscation

Conversation

@shiftinv

@shiftinv shiftinv commented Aug 14, 2026

Copy link
Copy Markdown
Member

Summary

Starting 2026-11-16, inaccessible channels will be obfuscated (when received via gw) or omitted entirely (via rest). While this doesn't have as many implications for the library as it does for bot developers, there are still a few things to add, namely:

  • ChannelFlags.obfuscated, plus GuildChannel.is_obfuscated() shorthand
  • Prefer the (always non-obfuscated) channel data in interactions over its equivalent cached channel object, if that one's obfuscated
  • Add a little (:tm:) explainer to the FAQ that goes a little more into the details of what channel obfuscation effectively means for developers (preview)

While these won't ever be obfuscated, there's also an is_obfuscated() -> Literal[False] method on DMChannel, GroupChannel, and Thread for compatibility.

For testing purposes (well, at least for the gw part), obfuscation can be enabled for a bot in the dev portal.

discord/discord-api-docs@8466405

Checklist

  • If code changes were made, then they have been tested
    • I have updated the documentation to reflect the changes
    • I have formatted the code properly by running uv run nox -s lint
    • I have type-checked the code by running uv run nox -s pyright
  • This PR fixes an issue
  • This PR adds something new (e.g. new method or parameters)
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

@shiftinv shiftinv added this to the v2.13 milestone Aug 14, 2026
@shiftinv shiftinv added this to disnake Aug 14, 2026
@shiftinv shiftinv added t: enhancement New feature t: api support Support of Discord API features s: needs review Issue/PR is awaiting reviews labels Aug 14, 2026
@github-project-automation github-project-automation Bot moved this to Todo in disnake Aug 14, 2026
@read-the-docs-community

read-the-docs-community Bot commented Aug 14, 2026

Copy link
Copy Markdown

Documentation build overview

📚 disnake | 🛠️ Build #34315159 | 📁 Comparing 35676bb against latest (6a8247c)

  🔍 Preview build  

52 files changed · ± 52 modified

± Modified

@shiftinv
shiftinv force-pushed the feature/channel-obfuscation branch from 7af4d32 to e3b86a1 Compare August 14, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

s: needs review Issue/PR is awaiting reviews t: api support Support of Discord API features t: enhancement New feature

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant