Skip to content

Commit

Permalink
Implement app_commands_badge in flags.py (#1535)
Browse files Browse the repository at this point in the history
Co-authored-by: Lulalaby<aiko@pycord.dev>
Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com>
  • Loading branch information
lol219 and Dorukyum authored Jul 30, 2022
1 parent ea0611d commit 89d20ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions discord/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,15 @@ 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

0 comments on commit 89d20ce

Please sign in to comment.