Skip to content

Commit c098ca5

Browse files
authored
Merge pull request #344 from Aiko-IT-Systems/master
Flaggyyyyyy
2 parents 5a23a46 + 5933635 commit c098ca5

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

discord/enums.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,13 @@ def __int__(self):
596596
return self.value
597597

598598

599+
class ApplicationType(Enum):
600+
game = 1
601+
music = 2
602+
ticketed_events = 3
603+
guild_role_subscriptions = 4
604+
605+
599606
class StagePrivacyLevel(Enum):
600607
public = 1
601608
closed = 2

discord/flags.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,11 @@ def bug_hunter_level_2(self):
426426
""":class:`bool`: Returns ``True`` if the user is a Bug Hunter Level 2"""
427427
return UserFlags.bug_hunter_level_2.value
428428

429+
@flag_value
430+
def has_unread_urgent_messages(self):
431+
""":class:`bool`: Returns ``True`` if the user has a unread urgent messages."""
432+
return UserFlags.has_unread_urgent_messages.value
433+
429434
@flag_value
430435
def underage_deleted(self):
431436
""":class:`bool`: Returns ``True`` if the user has a pending deletion for being underage in DOB prompt"""

discord/guild.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ class Guild(Hashable):
208208
- ``FEATURABLE``: Guild is able to be featured in Server Discovery.
209209
- ``HAS_DIRECTORY_ENTRY``: Unknown.
210210
- ``HUB``: Hubs contain a directory channel that let you find school-related, student-run servers for your school or university.
211+
- ``INTERNAL_EMPLOYEE_ONLY``: Indicates that only users with the staff badge can join the guild.
211212
- ``INVITE_SPLASH``: Guild's invite page can have a special splash.
212213
- ``LINKED_TO_HUB``: 'Guild is linked to a hub.
213214
- ``MEMBER_PROFILES``: Unknown.

docs/api.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,6 +1437,9 @@ of :class:`enum.Enum`.
14371437
.. attribute:: team_user
14381438

14391439
The user is a Team User.
1440+
.. attribute:: partner_or_verification_application
1441+
1442+
Relates to partner/verification applications.
14401443
.. attribute:: system
14411444

14421445
The user is a system user (i.e. represents Discord officially).
@@ -1455,6 +1458,12 @@ of :class:`enum.Enum`.
14551458
.. attribute:: discord_certified_moderator
14561459

14571460
The user is a Discord Certified Moderator.
1461+
.. attribute:: bot_http_interactions
1462+
1463+
The bot has set an interactions endpoint url.
1464+
.. attribute:: spammer
1465+
1466+
The user is disabled for being a spammer.
14581467

14591468
.. class:: ActivityType
14601469

0 commit comments

Comments
 (0)