Browse Source

Team.owner should return a TeamMember.

Should always be available but who knows.
pull/2255/head
Rapptz 6 years ago
parent
commit
ba7a319ab0
  1. 5
      discord/team.py

5
discord/team.py

@ -67,9 +67,8 @@ class Team:
@property
def owner(self):
"""Optional[:class:`User`]: The team's owner, if available from the cache."""
return self._state.get_user(self.owner_id)
"""Optional[:class:`TeamMember`]: The team's owner."""
return utils.get(self.members, id=self.owner_id)
class TeamMember(BaseUser):
"""Represents a team member in a team.

Loading…
Cancel
Save