From 5264784b0e4328f3b339cc23adc18b65f9643cd1 Mon Sep 17 00:00:00 2001 From: vmphase Date: Thu, 13 Aug 2026 09:24:29 +0300 Subject: [PATCH 1/4] feat(guild): add missing GuildFeature literals --- CHANGELOG.md | 3 +++ discord/guild.py | 17 +++++++++++++++-- discord/types/guild.py | 4 ++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c459cd514..29ecd99660 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ These changes are available on the `master` branch, but have not yet been releas ### Added +- Add `PRUNE_REQUIRES_ADMIN`, `GUESTS_ENABLED`, `GUILD_TAGS`, and `CREATOR_STORE_PAGE` + to the `GuildFeature` type. + ([#3350](https://github.com/Pycord-Development/pycord/pull/3350)) - Added `Member.vr_status` property. ([#3328](https://github.com/Pycord-Development/pycord/pull/3328)) diff --git a/discord/guild.py b/discord/guild.py index b485123b52..f08b7e142e 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -2702,8 +2702,13 @@ async def prune_members( The inactive members are denoted if they have not logged on in ``days`` number of days and have no roles. - You must have the :attr:`~Permissions.kick_members` permission - to use this. + You must have the :attr:`~Permissions.kick_members` and + :attr:`~Permissions.manage_guild` permissions to use this. If the guild has the + ``PRUNE_REQUIRES_ADMIN`` guild feature, you must have the + :attr:`~Permissions.administrator` permission instead. + + .. versionchanged:: 2.9 + The ``PRUNE_REQUIRES_ADMIN`` guild feature requirement was added. To check how many members you would prune without actually pruning, see the :meth:`estimate_pruned_members` function. @@ -2816,6 +2821,14 @@ async def estimate_pruned_members( pruning members, it returns how many members it would prune from the guild had it been called. + You must have the :attr:`~Permissions.kick_members` and + :attr:`~Permissions.manage_guild` permissions to use this. If the guild has the + ``PRUNE_REQUIRES_ADMIN`` guild feature, you must have the + :attr:`~Permissions.administrator` permission instead. + + .. versionchanged:: 2.9 + The ``PRUNE_REQUIRES_ADMIN`` guild feature requirement was added. + Parameters ---------- days: :class:`int` diff --git a/discord/types/guild.py b/discord/types/guild.py index 3c71c8647e..f28dfacab5 100644 --- a/discord/types/guild.py +++ b/discord/types/guild.py @@ -69,9 +69,12 @@ class UnavailableGuild(TypedDict): "CHANNEL_BANNER", "COMMERCE", "COMMUNITY", + "CREATOR_STORE_PAGE", "DEVELOPER_SUPPORT_SERVER", "DISCOVERABLE", "FEATURABLE", + "GUESTS_ENABLED", + "GUILD_TAGS", "HAS_DIRECTORY_ENTRY", "HUB", "INTERNAL_EMPLOYEE_ONLY", @@ -90,6 +93,7 @@ class UnavailableGuild(TypedDict): "PARTNERED", "PREMIUM_TIER_3_OVERRIDE", "PREVIEW_ENABLED", + "PRUNE_REQUIRES_ADMIN", "ROLE_ICONS", "ROLE_SUBSCRIPTIONS_ENABLED", "RAID_ALERTS_DISABLED", From 3a1719d637d5dbe89ece4b54a4b0e4117a9f02bd Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 13 Aug 2026 14:56:37 +0300 Subject: [PATCH 2/4] Update CHANGELOG.md Co-authored-by: Lala Sabathil Signed-off-by: Michael --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29ecd99660..81288c9e38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ These changes are available on the `master` branch, but have not yet been releas ### Added -- Add `PRUNE_REQUIRES_ADMIN`, `GUESTS_ENABLED`, `GUILD_TAGS`, and `CREATOR_STORE_PAGE` +- Added `PRUNE_REQUIRES_ADMIN`, `GUESTS_ENABLED`, `GUILD_TAGS`, and `CREATOR_STORE_PAGE` to the `GuildFeature` type. ([#3350](https://github.com/Pycord-Development/pycord/pull/3350)) - Added `Member.vr_status` property. From 6b6e924171a9705c9d33384c228c09699bd82a6b Mon Sep 17 00:00:00 2001 From: vmphase Date: Sun, 23 Aug 2026 10:32:19 +0300 Subject: [PATCH 3/4] chore: remove redundant ..versionchanged --- discord/guild.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/discord/guild.py b/discord/guild.py index f08b7e142e..c04b656184 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -2707,9 +2707,6 @@ async def prune_members( ``PRUNE_REQUIRES_ADMIN`` guild feature, you must have the :attr:`~Permissions.administrator` permission instead. - .. versionchanged:: 2.9 - The ``PRUNE_REQUIRES_ADMIN`` guild feature requirement was added. - To check how many members you would prune without actually pruning, see the :meth:`estimate_pruned_members` function. From c525950919a71169604cb0da4f65e1c76f680f48 Mon Sep 17 00:00:00 2001 From: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Date: Sun, 23 Aug 2026 14:57:32 +0300 Subject: [PATCH 4/4] remove versionchanged Signed-off-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> --- discord/guild.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/discord/guild.py b/discord/guild.py index c04b656184..f0d5ad0de1 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -2823,9 +2823,6 @@ async def estimate_pruned_members( ``PRUNE_REQUIRES_ADMIN`` guild feature, you must have the :attr:`~Permissions.administrator` permission instead. - .. versionchanged:: 2.9 - The ``PRUNE_REQUIRES_ADMIN`` guild feature requirement was added. - Parameters ---------- days: :class:`int`