Skip to content

Commit 8d37529

Browse files
authored
Merge pull request #327 from Aiko-IT-Systems/application-flags
Update Application Flags
2 parents ac13ead + 1412213 commit 8d37529

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

discord/flags.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,24 @@ class ApplicationFlags(BaseFlags):
10901090
rather than using this raw value.
10911091
"""
10921092

1093+
@flag_value
1094+
def managed_emoji(self):
1095+
""":class:`bool`: Returns ``True`` if the application is a managed emoji.
1096+
"""
1097+
return 1 << 2
1098+
1099+
@flag_value
1100+
def group_dm_create(self):
1101+
""":class:`bool`: Returns ``True`` if the application can create group DMs.
1102+
"""
1103+
return 1 << 5
1104+
1105+
@flag_value
1106+
def rpc_has_connected(self):
1107+
""":class:`bool`: Returns ``True`` if the application has connected to RPC.
1108+
"""
1109+
return 1 << 11
1110+
10931111
@flag_value
10941112
def gateway_presence(self):
10951113
""":class:`bool`: Returns ``True`` if the application is verified and is allowed to
@@ -1129,3 +1147,16 @@ def verification_pending_guild_limit(self):
11291147
def embedded(self):
11301148
""":class:`bool`: Returns ``True`` if the application is embedded within the Discord client."""
11311149
return 1 << 17
1150+
1151+
@flag_value
1152+
def gateway_message_content(self):
1153+
""":class:`bool`: Returns ``True`` if the application is allowed to read message contents in guilds.
1154+
"""
1155+
return 1 << 18
1156+
1157+
@flag_value
1158+
def gateway_message_content_limited(self):
1159+
""":class:`bool`: Returns ``True`` if the application is currently pending verification
1160+
and has hit the guild limit.
1161+
"""
1162+
return 1 << 19

0 commit comments

Comments
 (0)