Skip to content

Commit

Permalink
Update Application Flags
Browse files Browse the repository at this point in the history
Source: discord/discord-api-docs#3999
Added gateway_message_content with value 1 << 18
Added gateway_message_content_limited with value 1 << 19

Source: https://github.com/Aiko-IT-Systems/DisCatSharp/blob/main/DisCatSharp/Enums/Application/ApplicationFlags.cs
Added missing managed_emoji with value 1 << 2
Added missing group_dm_create with value 1 << 5
Added missing rpc_has_connected with value 1 << 11
  • Loading branch information
Lulalaby committed Oct 25, 2021
1 parent aa3ec7f commit bee7f61
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions discord/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,24 @@ class ApplicationFlags(BaseFlags):
rather than using this raw value.
"""

@flag_value
def managed_emoji(self):
""":class:`bool`: Returns ``True`` if the application is a managed emoji.
"""
return 1 << 2

@flag_value
def group_dm_create(self):
""":class:`bool`: Returns ``True`` if the application can create group dms.
"""
return 1 << 5

@flag_value
def rpc_has_connected(self):
""":class:`bool`: Returns ``True`` if the application has connected to RPC.
"""
return 1 << 11

@flag_value
def gateway_presence(self):
""":class:`bool`: Returns ``True`` if the application is verified and is allowed to
Expand Down Expand Up @@ -1129,3 +1147,16 @@ def verification_pending_guild_limit(self):
def embedded(self):
""":class:`bool`: Returns ``True`` if the application is embedded within the Discord client."""
return 1 << 17

@flag_value
def gateway_message_content(self):
""":class:`bool`: Returns ``True`` if the application is allowed to read message contents in guilds.
"""
return 1 << 18

@flag_value
def gateway_message_content_limited(self):
""":class:`bool`: Returns ``True`` if the application is currently pending verification
and has hit the guild limit.
"""
return 1 << 19

0 comments on commit bee7f61

Please sign in to comment.