Skip to content

Commit

Permalink
Correct location of app_commands_badge flag (Pycord-Development#1553)
Browse files Browse the repository at this point in the history
  • Loading branch information
Middledot authored Aug 8, 2022
1 parent c98060f commit db38261
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions discord/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,6 @@ def join_notification_replies(self):
"""
return 8

@flag_value
def app_commands_badge(self):
""":class:`bool`: Returns ``True`` if the application has registered a global application
command. This shows up as a badge in the bot's profile.
.. versionadded:: 2.1
"""
return 1 << 23


@fill_with_flags()
class MessageFlags(BaseFlags):
Expand Down Expand Up @@ -1372,6 +1363,15 @@ def gateway_message_content_limited(self):
"""
return 1 << 19

@flag_value
def app_commands_badge(self):
""":class:`bool`: Returns ``True`` if the application has registered at least one global application
command, and by extension has the badge.
.. versionadded:: 2.1
"""
return 1 << 23


@fill_with_flags()
class ChannelFlags(BaseFlags):
Expand Down

0 comments on commit db38261

Please sign in to comment.