mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Team.owner should return a TeamMember.
Should always be available but who knows.
This commit is contained in:
parent
c4d1bd7899
commit
ba7a319ab0
@ -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…
x
Reference in New Issue
Block a user