Add support for role subscription reading

This commit is contained in:
Rapptz
2023-01-10 18:05:00 -05:00
parent e802a87916
commit 3d24f0fb12
8 changed files with 115 additions and 2 deletions

View File

@ -290,6 +290,24 @@ class SystemChannelFlags(BaseFlags):
"""
return 8
@flag_value
def role_subscription_purchase_notifications(self):
""":class:`bool`: Returns ``True`` if role subscription purchase and renewal
notifications are enabled.
.. versionadded:: 2.2
"""
return 16
@flag_value
def role_subscription_purchase_notification_replies(self):
""":class:`bool`: Returns ``True`` if the role subscription notifications
have a sticker reply button.
.. versionadded:: 2.2
"""
return 32
@fill_with_flags()
class MessageFlags(BaseFlags):