|
|
@ -52,14 +52,22 @@ class Profile(namedtuple('Profile', 'flags user mutual_guilds connected_accounts |
|
|
|
def staff(self): |
|
|
|
return self._has_flag(UserFlags.staff) |
|
|
|
|
|
|
|
@property |
|
|
|
def hypesquad(self): |
|
|
|
return self._has_flag(UserFlags.hypesquad) |
|
|
|
|
|
|
|
@property |
|
|
|
def partner(self): |
|
|
|
return self._has_flag(UserFlags.partner) |
|
|
|
|
|
|
|
@property |
|
|
|
def bug_hunter(self): |
|
|
|
return self._has_flag(UserFlags.bug_hunter) |
|
|
|
|
|
|
|
@property |
|
|
|
def early_supporter(self): |
|
|
|
return self._has_flag(UserFlags.early_supporter) |
|
|
|
|
|
|
|
@property |
|
|
|
def hypesquad(self): |
|
|
|
return self._has_flag(UserFlags.hypesquad) |
|
|
|
|
|
|
|
@property |
|
|
|
def hypesquad_houses(self): |
|
|
|
flags = (UserFlags.hypesquad_bravery, UserFlags.hypesquad_brilliance, UserFlags.hypesquad_balance) |
|
|
|