mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Add support for role subscription reading
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user