Skip to content

Commit

Permalink
chore(UserFlags): update certified moderator description (#883)
Browse files Browse the repository at this point in the history
Renames the old `Discord Certified Moderator` to `Moderator Programs Alumni`


Signed-off-by: Luke <[email protected]>
Co-authored-by: arl <[email protected]>
Co-authored-by: Victor <[email protected]>
Co-authored-by: shiftinv <[email protected]>
  • Loading branch information
4 people authored Jan 14, 2023
1 parent 5810c1d commit a2d7e7c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/883.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The :attr:`PublicUserFlags.discord_certified_moderator` is now an alias of :attr:`PublicUserFlags.moderator_programs_alumni`.
11 changes: 10 additions & 1 deletion disnake/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,7 @@ def __init__(
hypesquad_balance: bool = ...,
hypesquad_bravery: bool = ...,
hypesquad_brilliance: bool = ...,
moderator_programs_alumni: bool = ...,
partner: bool = ...,
spammer: bool = ...,
staff: bool = ...,
Expand Down Expand Up @@ -828,8 +829,16 @@ def early_verified_bot_developer(self):
return UserFlags.verified_bot_developer.value

@flag_value
def moderator_programs_alumni(self):
""":class:`bool`: Returns ``True`` if the user is a Discord Moderator Programs Alumni.
.. versionadded:: 2.8
"""
return UserFlags.discord_certified_moderator.value

@alias_flag_value
def discord_certified_moderator(self):
""":class:`bool`: Returns ``True`` if the user is a Discord Certified Moderator.
""":class:`bool`: An alias for :attr:`moderator_programs_alumni`.
.. versionadded:: 2.0
"""
Expand Down

0 comments on commit a2d7e7c

Please sign in to comment.