Skip to content

Implement "Prune Requires Admin" guild feature - #2578

Open
raventhyme wants to merge 1 commit into
twilight-rs:mainfrom
raventhyme:feat/guild-feature-prune-requires-admin
Open

Implement "Prune Requires Admin" guild feature#2578
raventhyme wants to merge 1 commit into
twilight-rs:mainfrom
raventhyme:feat/guild-feature-prune-requires-admin

Conversation

@raventhyme

Copy link
Copy Markdown
Member

Add support for the new guild feature PRUNE_REQUIRES_ADMIN. When enabled on a guild the ADMINISTRATOR guild permission is required for prune operations (create, get count); otherwise, only the KICK_MEMBERS and MANAGE_GUILD permissions are required.

Documentation referring to this distinction has been added to the HTTP requests for Create Guild Prune and and Get Guild Prune Count.

Discord API documentation:
discord/discord-api-docs@488f24d

Add support for the new guild feature `PRUNE_REQUIRES_ADMIN`. When
enabled on a guild the `ADMINISTRATOR` guild permission is required for
prune operations (create, get count); otherwise, only the `KICK_MEMBERS`
and `MANAGE_GUILD` permissions are required.

Documentation referring to this distinction has been added to the HTTP
requests for Create Guild Prune and and Get Guild Prune Count.

Discord API documentation:
<discord/discord-api-docs@488f24d>
@raventhyme raventhyme added t-feature Addition of a new feature c-http Affects the http crate c-model Affects the model crate d-api Change related to Discord's API. labels Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants