Browse Source

Add automod_badge application flag

pull/10109/head
dolfies 2 years ago
parent
commit
2da440b919
  1. 22
      discord/flags.py

22
discord/flags.py

@ -1190,17 +1190,17 @@ class ApplicationFlags(BaseFlags):
@flag_value @flag_value
def managed_emoji(self): def managed_emoji(self):
""":class:`bool`: Returns ``True`` if the application has the ability to create Twitch-style emotes.""" """:class:`bool`: Returns ``True`` if the application has the ability to create managed emoji."""
return 1 << 2 return 1 << 2
@flag_value @flag_value
def embedded_iap(self): def embedded_iap(self):
""":class:`bool`: Returns ``True`` if the application has the ability to use embedded in-app purchases.""" """:class:`bool`: Returns ``True`` if the embedded application has the ability to use in-app purchases."""
return 1 << 3 return 1 << 3
@flag_value @flag_value
def group_dm_create(self): def group_dm_create(self):
""":class:`bool`: Returns ``True`` if the application has the ability to create group DMs.""" """:class:`bool`: Returns ``True`` if the application has the ability to create group DMs without limit."""
return 1 << 4 return 1 << 4
@flag_value @flag_value
@ -1208,6 +1208,14 @@ class ApplicationFlags(BaseFlags):
""":class:`bool`: Returns ``True`` if the application has the ability to access the client RPC server.""" """:class:`bool`: Returns ``True`` if the application has the ability to access the client RPC server."""
return 1 << 5 return 1 << 5
@flag_value
def automod_badge(self):
""":class:`bool`: Returns ``True`` if the application has created at least 100 automod rules across all guilds.
.. versionadded:: 2.1
"""
return 1 << 6
@flag_value @flag_value
def allow_assets(self): def allow_assets(self):
""":class:`bool`: Returns ``True`` if the application has the ability to use activity assets.""" """:class:`bool`: Returns ``True`` if the application has the ability to use activity assets."""
@ -1258,20 +1266,20 @@ class ApplicationFlags(BaseFlags):
@flag_value @flag_value
def verification_pending_guild_limit(self): def verification_pending_guild_limit(self):
""":class:`bool`: Returns ``True`` if the application is currently pending verification """:class:`bool`: Returns ``True`` if the application has had unusual growth,
and has hit the guild limit. temporarily preventing verification.
""" """
return 1 << 16 return 1 << 16
@flag_value @flag_value
def embedded(self): def embedded(self):
""":class:`bool`: Returns ``True`` if the application is embedded within the Discord client.""" """:class:`bool`: Returns ``True`` if the application can be embedded within the Discord client."""
return 1 << 17 return 1 << 17
@flag_value @flag_value
def gateway_message_content(self): def gateway_message_content(self):
""":class:`bool`: Returns ``True`` if the application is verified and is allowed to """:class:`bool`: Returns ``True`` if the application is verified and is allowed to
receive message content.""" receive message content in guilds."""
return 1 << 18 return 1 << 18
@flag_value @flag_value

Loading…
Cancel
Save