Remove owner from TeamMemberRole

This commit is contained in:
Rapptz 2023-08-25 15:43:04 -04:00
parent 60ff239558
commit f74eb14d72
3 changed files with 1 additions and 6 deletions

View File

@ -523,7 +523,6 @@ class TeamMembershipState(Enum):
class TeamMemberRole(Enum): class TeamMemberRole(Enum):
owner = 'owner'
admin = 'admin' admin = 'admin'
developer = 'developer' developer = 'developer'
read_only = 'read_only' read_only = 'read_only'

View File

@ -35,7 +35,7 @@ class TeamMember(TypedDict):
membership_state: int membership_state: int
permissions: List[str] permissions: List[str]
team_id: Snowflake team_id: Snowflake
role: Literal['owner', 'admin', 'developer', 'read_only'] role: Literal['admin', 'developer', 'read_only']
class Team(TypedDict): class Team(TypedDict):

View File

@ -2865,10 +2865,6 @@ of :class:`enum.Enum`.
.. versionadded:: 2.4 .. versionadded:: 2.4
.. attribute:: owner
The team member owns the team. This allows them to do everything with the team, including destructive actions.
.. attribute:: admin .. attribute:: admin
The team member is an admin. This allows them to invite members to the team, access credentials, edit the application, The team member is an admin. This allows them to invite members to the team, access credentials, edit the application,