diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b860ca48d..c789846a06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#1702](https://github.com/Pycord-Development/pycord/pull/1702)) - Added support for age-restricted (NSFW) commands. ([#1775](https://github.com/Pycord-Development/pycord/pull/1775)) +- New flags: `PublicUserFlags.active_developer` & `ApplicationFlags.active`. + ([#1776](https://github.com/Pycord-Development/pycord/pull/1776)) ### Fixed diff --git a/discord/enums.py b/discord/enums.py index b5917417a5..1a991a481a 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -541,6 +541,7 @@ class UserFlags(Enum): discord_certified_moderator = 262144 bot_http_interactions = 524288 spammer = 1048576 + active_developer = 4194304 class ActivityType(Enum): diff --git a/discord/flags.py b/discord/flags.py index 2bf94b18d8..2241e90d2c 100644 --- a/discord/flags.py +++ b/discord/flags.py @@ -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. + + .. versionadded:: 2.3 + """ + return UserFlags.active_developer.value + def all(self) -> list[UserFlags]: """List[:class:`UserFlags`]: Returns all public flags the user has.""" return [ @@ -1374,6 +1382,15 @@ def app_commands_badge(self): """ return 1 << 23 + @flag_value + def active(self): + """:class:`bool`: Returns ``True`` if the app is considered active. + Applications are considered active if they have had any command executions in the past 30 days. + + .. versionadded:: 2.3 + """ + return 1 << 24 + @fill_with_flags() class ChannelFlags(BaseFlags):