|
|
@ -346,9 +346,20 @@ class PublicUserFlags(BaseFlags): |
|
|
|
|
|
|
|
@flag_value |
|
|
|
def bug_hunter(self): |
|
|
|
""":class:`bool`: Returns ``True`` if the user is a Bug Hunter""" |
|
|
|
""":class:`bool`: Returns ``True`` if the user is a level 1 Bug Hunter |
|
|
|
|
|
|
|
There is an alias of this called :attr:`bug_hunter_level_1`. |
|
|
|
""" |
|
|
|
return UserFlags.bug_hunter.value |
|
|
|
|
|
|
|
@alias_flag_value |
|
|
|
def bug_hunter_level_1(self): |
|
|
|
""":class:`bool`: Returns ``True`` if the user is a Bug Hunter |
|
|
|
|
|
|
|
This is an alias of :attr:`bug_hunter`. |
|
|
|
""" |
|
|
|
return UserFlags.bug_hunter_level_1.value |
|
|
|
|
|
|
|
@flag_value |
|
|
|
def hypesquad_bravery(self): |
|
|
|
""":class:`bool`: Returns ``True`` if the user is a HypeSquad Bravery member.""" |
|
|
@ -381,7 +392,7 @@ class PublicUserFlags(BaseFlags): |
|
|
|
|
|
|
|
@flag_value |
|
|
|
def bug_hunter_level_2(self): |
|
|
|
""":class:`bool`: Returns ``True`` if the user is a Bug Hunter Level 2""" |
|
|
|
""":class:`bool`: Returns ``True`` if the user is a level 2 Bug Hunter""" |
|
|
|
return UserFlags.bug_hunter_level_2.value |
|
|
|
|
|
|
|
@flag_value |
|
|
@ -410,6 +421,16 @@ class PublicUserFlags(BaseFlags): |
|
|
|
""" |
|
|
|
return UserFlags.discord_certified_moderator.value |
|
|
|
|
|
|
|
@flag_value |
|
|
|
def bot_http_interactions(self): |
|
|
|
""":class:`bool`: Returns ``True`` if the bot doesn't connect to the gateway but should still be shown as online.""" |
|
|
|
return UserFlags.bot_http_interactions.value |
|
|
|
|
|
|
|
@flag_value |
|
|
|
def spammer(self): |
|
|
|
""":class:`bool`: Returns ``True`` if the user is marked as a spammer.""" |
|
|
|
return UserFlags.spammer.value |
|
|
|
|
|
|
|
def all(self) -> List[UserFlags]: |
|
|
|
"""List[:class:`UserFlags`]: Returns all public flags the user has.""" |
|
|
|
return [public_flag for public_flag in UserFlags if self._has_flag(public_flag.value)] |
|
|
@ -575,6 +596,11 @@ class ApplicationFlags(BaseFlags): |
|
|
|
""":class:`bool`: Returns ``True`` if the application is embedded within the Discord client.""" |
|
|
|
return 1 << 17 |
|
|
|
|
|
|
|
@flag_value |
|
|
|
def embedded_first_party(self): |
|
|
|
""":class:`bool`: Returns ``True`` if a first party application is emdedded within the Discord client.""" |
|
|
|
return 1 << 20 |
|
|
|
|
|
|
|
|
|
|
|
class GuildSubscriptionOptions: |
|
|
|
r"""Controls the library's auto-subscribing feature. |
|
|
|