Skip to content

Commit

Permalink
fix: remove owner role
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftinv committed Aug 25, 2023
1 parent fc67711 commit db79a14
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion disnake/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,6 @@ class TeamMembershipState(Enum):


class TeamMemberRole(Enum):
owner = "owner"
admin = "admin"
developer = "developer"
read_only = "read_only"
Expand Down
2 changes: 1 addition & 1 deletion disnake/types/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
6 changes: 1 addition & 5 deletions docs/api/app_info.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit db79a14

Please sign in to comment.