Browse Source

Remove owner from TeamMemberRole

pull/9540/head
Rapptz 2 years ago
parent
commit
f74eb14d72
  1. 1
      discord/enums.py
  2. 2
      discord/types/team.py
  3. 4
      docs/api.rst

1
discord/enums.py

@ -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'

2
discord/types/team.py

@ -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):

4
docs/api.rst

@ -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,

Loading…
Cancel
Save