From db79a14a368d66b16cd67350871c19ab90fef314 Mon Sep 17 00:00:00 2001 From: shiftinv Date: Fri, 25 Aug 2023 23:05:06 +0200 Subject: [PATCH] fix: remove `owner` role --- disnake/enums.py | 1 - disnake/types/team.py | 2 +- docs/api/app_info.rst | 6 +----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/disnake/enums.py b/disnake/enums.py index db67efeb49..ccbe533f1f 100644 --- a/disnake/enums.py +++ b/disnake/enums.py @@ -553,7 +553,6 @@ class TeamMembershipState(Enum): class TeamMemberRole(Enum): - owner = "owner" admin = "admin" developer = "developer" read_only = "read_only" diff --git a/disnake/types/team.py b/disnake/types/team.py index 01f06245c4..0829c18b5c 100644 --- a/disnake/types/team.py +++ b/disnake/types/team.py @@ -8,7 +8,7 @@ from .user import PartialUser TeamMembershipState = Literal[1, 2] -TeamMemberRole = Literal["owner", "admin", "developer", "read_only"] +TeamMemberRole = Literal["admin", "developer", "read_only"] class TeamMember(TypedDict): diff --git a/docs/api/app_info.rst b/docs/api/app_info.rst index e53e8539a6..7aa6c4148f 100644 --- a/docs/api/app_info.rst +++ b/docs/api/app_info.rst @@ -99,13 +99,9 @@ TeamMemberRole .. versionadded:: 2.10 - .. attribute:: owner - - Owners have the most permissions, an can take destructive actions on the team and team-owned applications. - .. attribute:: admin - Admins have similar access as owners, except they cannot take destructive actions on the team or team-owned apps. + Admins have the most permissions. An admin can only take destructive actions on the team or team-owned apps if they are the team owner. .. attribute:: developer