Skip to content

Commit 8304659

Browse files
committed
style(typing): Typehint permissions.py
Signed-off-by: Mathieu Corsham <[email protected]>
1 parent 373abc5 commit 8304659

File tree

2 files changed

+198
-50
lines changed

2 files changed

+198
-50
lines changed

discord/flags.py

Lines changed: 45 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,55 +1230,89 @@ class ApplicationFlags(BaseFlags):
12301230
representing the currently available flags. You should query
12311231
flags via the properties rather than using this raw value.
12321232
"""
1233+
@flag_value
1234+
def managed_emoji(self):
1235+
""":class:`bool`: Returns ``True`` if the application is a managed emoji.
1236+
1237+
.. versionadded:: 2.0
1238+
"""
1239+
return 1 << 2
12331240

1241+
@flag_value
1242+
def group_dm_create(self):
1243+
""":class:`bool`: Returns ``True`` if the application can create group DMs.
1244+
1245+
.. versionadded:: 2.0
1246+
"""
1247+
return 1 << 5
1248+
1249+
@flag_value
1250+
def application_auto_moderation_rule_create_badge(self):
1251+
""":class:`bool`: Returns ``True`` if the application uses the Auto Moderation API.
1252+
1253+
.. versionadded:: 2.0
1254+
"""
1255+
return 1 << 6
1256+
1257+
@flag_value
1258+
def rpc_has_connected(self):
1259+
""":class:`bool`: Returns ``True`` if the application has connected to RPC.
1260+
1261+
.. versionadded:: 2.0
1262+
"""
1263+
return 1 << 11
1264+
12341265
@flag_value
12351266
def gateway_presence(self):
12361267
""":class:`bool`: Returns ``True`` if the application is approved for the privileged gateway presence-intent."""
1237-
12381268
return 1 << 12
12391269

12401270
@flag_value
12411271
def gateway_presence_limited(self):
12421272
""":class:`bool`: Returns ``True`` if the privileged gateway presence-intent
1243-
is enabled in the application in the developer-portal."""
1244-
1273+
is enabled in the application in the developer-portal.
1274+
"""
12451275
return 1 << 13
12461276

12471277
@flag_value
12481278
def gateway_guild_members(self):
12491279
""":class:`bool`: Returns ``True`` if the application is approved
1250-
for the privileged gateway guild-members-intent."""
1251-
1280+
for the privileged gateway guild-members-intent.
1281+
"""
12521282
return 1 << 14
12531283

12541284
@flag_value
12551285
def gateway_guild_members_limited(self):
12561286
""":class:`bool`: Returns ``True`` if the privileged gateway guild-members-intent
1257-
is enabled in the application in the developer-portal."""
1258-
1287+
is enabled in the application in the developer-portal.
1288+
"""
12591289
return 1 << 15
12601290

12611291
@flag_value
12621292
def verification_pending_guild_limit(self):
12631293
""":class:`bool: Returns ``True`` if this application has reached the required number of guilds
1264-
to apply for verification. (76+ Guilds)"""
1294+
to apply for verification. (76+ Guilds)
1295+
"""
12651296
return 1 << 16
12661297

12671298
@flag_value
12681299
def embedded(self):
1269-
""":class:`bool`: Returns ``True`` if this application could have embedded invites.(usually voice-activity's)"""
1300+
""":class:`bool`: Returns ``True`` if this application could have embedded invites.(usually voice-activity's)
1301+
"""
12701302
return 1 << 17
12711303

12721304
@flag_value
12731305
def gateway_message_content(self):
12741306
""":class:`bool`: Returns ``True`` if the application is approved
1275-
for the privileged gateway message-content-intent."""
1307+
for the privileged gateway message-content-intent.
1308+
"""
12761309
return 1 << 18
12771310

12781311
@flag_value
12791312
def gateway_message_content_limited(self):
12801313
""":class:`bool`: Returns ``True`` if the privileged gateway message-content-intent
1281-
is enabled in the application in the developer-portal."""
1314+
is enabled in the application in the developer-portal.
1315+
"""
12821316
return 1 << 19
12831317

12841318
@flag_value

0 commit comments

Comments
 (0)