Skip to content

Commit

Permalink
feat: implement new member flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Snipy7374 committed Nov 22, 2024
1 parent d95db29 commit bf22a4a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions disnake/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -2370,6 +2370,31 @@ def started_onboarding(self):
""":class:`bool`: Returns ``True`` if the member has started onboarding."""
return 1 << 3

@flag_value
def is_guest(self):
""":class:`bool`: Returns ``True`` if the member is a guest and can ony access the voice channel they were invited to."""
return 1 << 4

@flag_value
def started_home_actions(self):
""":class:`bool`: Returns ``True`` if the member has started the Server Guide actions."""
return 1 << 5

@flag_value
def completed_home_actions(self):
""":class:`bool`: Returns ``True`` if the member has completed the Server Guide actions."""
return 1 << 6

@flag_value
def automod_quarantined_username(self):
""":class:`bool`: Returns ``True`` if the member's username, display name, or nickname is blocked by AutoMod."""
return 1 << 7

@flag_value
def dm_settings_upsell_acknowledged(self):
""":class:`bool`: Returns ``True`` if the member has dismissed the DM settings upsell."""
return 1 << 9


class RoleFlags(BaseFlags):
"""Wraps up Discord Role flags.
Expand Down

0 comments on commit bf22a4a

Please sign in to comment.