Browse Source

Remove redundant properties from profiles

pull/10109/head
dolfies 3 years ago
parent
commit
8469f704da
  1. 13
      discord/profile.py

13
discord/profile.py

@ -100,11 +100,6 @@ class Profile:
state = self._state
return [state.store_user(friend) for friend in mutual_friends]
@property
def flags(self) -> PublicUserFlags:
""":class:`PublicUserFlags`: The flags the user has."""
return PublicUserFlags._from_value(self._flags)
@property
def premium(self) -> bool:
""":class:`bool`: Indicates if the user is a premium user.
@ -113,14 +108,6 @@ class Profile:
"""
return self.premium_since is not None
@property
def nitro(self) -> bool:
""":class:`bool`: Indicates if the user is a premium user.
This is an alias for :attr:`premium`.
"""
return self.premium
class UserProfile(Profile, User):
"""Represents a Discord user's profile. This is a :class:`User` with extended attributes.

Loading…
Cancel
Save