Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: New flags ACTIVE_DEVELOPER and ACTIVE #1776

Merged
merged 10 commits into from
Nov 10, 2022
1 change: 1 addition & 0 deletions discord/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ class UserFlags(Enum):
discord_certified_moderator = 262144
bot_http_interactions = 524288
spammer = 1048576
active_developer = 4194304


class ActivityType(Enum):
Expand Down
8 changes: 8 additions & 0 deletions discord/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,14 @@ def bot_http_interactions(self):
"""
return UserFlags.bot_http_interactions.value

@flag_value
def active_developer(self):
""":class:`bool`: Returns ``True`` if the user is an [Active Developer] (https://support-dev.discord.com/hc/articles/10113997751447).
Lulalaby marked this conversation as resolved.
Show resolved Hide resolved

.. versionadded:: 2.3
"""
return UserFlags.active_developer.value

def all(self) -> list[UserFlags]:
"""List[:class:`UserFlags`]: Returns all public flags the user has."""
return [
Expand Down