Skip to content

Commit

Permalink
Remove owner from TeamMemberRole
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Aug 25, 2023
1 parent 60ff239 commit f74eb14
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion discord/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,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 discord/types/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TeamMember(TypedDict):
membership_state: int
permissions: List[str]
team_id: Snowflake
role: Literal['owner', 'admin', 'developer', 'read_only']
role: Literal['admin', 'developer', 'read_only']


class Team(TypedDict):
Expand Down
4 changes: 0 additions & 4 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2865,10 +2865,6 @@ of :class:`enum.Enum`.

.. 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

The team member is an admin. This allows them to invite members to the team, access credentials, edit the application,
Expand Down

3 comments on commit f74eb14

@anushkmittal
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did u do this? why are we not supporting owner membership state?

@Rapptz
Copy link
Owner Author

@Rapptz Rapptz commented on f74eb14 Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it doesn't exist. It's in a different attribute, owner_id. See here: discord/discord-api-docs@b6db1da

@anushkmittal
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

found it!! my 60k bots say thanks!!!

Please sign in to comment.