Skip to content

Match Discord's UI permission names per context - #16

Open
biast12 wants to merge 2 commits into
masterfrom
permissions
Open

Match Discord's UI permission names per context#16
biast12 wants to merge 2 commits into
masterfrom
permissions

Conversation

@biast12

@biast12 biast12 commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Description

Permission.String() returned a mix of API constant names and outdated UI labels, and had no way to express that Discord renames several permissions depending on where they're shown. A user told they're missing "Manage Roles" would search the channel permission pane for a label that says "Manage Permissions".

I have also added the missing Gallery/Media forum channel type (ChannelTypeGuildMedia)

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Improvement

Checklist

  • My code follows the style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

Introduces `ChannelType` helpers (`IsThread`, `IsPostBased`) and adds support for `ChannelTypeGuildMedia`. Permission naming now adapts to channel context via `ChannelName`, including post-based wording (e.g., "Create Posts") and singular channel labels. Also updates `ViewChannel` text to "View Channels", adds a string label for `BypassSlowmode`, and includes `BypassSlowmode` in `AllPermissions`.
Updates multiple `Permission.String()` display names to match newer Discord wording, and reworks `ChannelName` to return clearer, channel-aware labels. Category channels now always map `ManageRoles` to “Manage Permissions”, post-based channels get post-specific names (including post history), and thread/message labels are adjusted separately for non-post channels.
@biast12
biast12 requested a review from a team as a code owner August 26, 2026 12:52
@biast12 biast12 added the enhancement New feature or request label Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant