From 7e9eef1ad875683e1a80a7b0e7da6063b24a055e Mon Sep 17 00:00:00 2001 From: Soheab <33902984+Soheab@users.noreply.github.com> Date: Sat, 24 Jan 2026 16:36:50 +0100 Subject: [PATCH] Update permissions https://github.com/discord/discord-api-docs/pull/8090 --- discord/abc.py | 2 -- discord/invite.py | 12 +++++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/discord/abc.py b/discord/abc.py index 54253572d..6e0b6f586 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -1337,8 +1337,6 @@ class GuildChannel: target_users: Optional[Sequence[:class:`~discord.abc.Snowflake`]] A list of users that are allowed to join via this invite. - Requires the :attr:`~discord.Permissions.manage_guild` permission. - .. versionadded:: 2.7 Raises diff --git a/discord/invite.py b/discord/invite.py index 1349ec792..2b1137fa9 100644 --- a/discord/invite.py +++ b/discord/invite.py @@ -660,7 +660,9 @@ class Invite(Hashable): Fetches the users that are allowed to join via this invite. - Requires the :attr:`~Permissions.manage_guild` permission. + Requires the bot to have created the invite or one of + the following permissions: :attr:`~Permissions.manage_guild`, + :attr:`~Permissions.view_audit_log`. Returns -------- @@ -685,7 +687,10 @@ class Invite(Hashable): Fetches the status of the target users job for this invite. - Requires the :attr:`~Permissions.manage_guild` permission. + Requires the bot to have created the invite or one of + the following permissions: :attr:`~Permissions.manage_guild`, + :attr:`~Permissions.view_audit_log`. + Returns -------- @@ -719,7 +724,8 @@ class Invite(Hashable): users: List[:class:`~discord.abc.Snowflake`] A list of users that should be able to use this invite. - Requires the :attr:`~Permissions.manage_guild` permission. + Requires the bot to have created the invite or the + :attr:`~Permissions.manage_guild` permission. .. note:: You cannot clear the list of target users once set.