mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Add support for silent messages
This commit is contained in:
@ -434,6 +434,22 @@ class MessageFlags(BaseFlags):
|
||||
"""
|
||||
return 256
|
||||
|
||||
@flag_value
|
||||
def suppress_notifications(self):
|
||||
""":class:`bool`: Returns ``True`` if the message will not trigger push and desktop notifications.
|
||||
|
||||
.. versionadded:: 2.2
|
||||
"""
|
||||
return 4096
|
||||
|
||||
@alias_flag_value
|
||||
def silent(self):
|
||||
""":class:`bool`: Alias for :attr:`suppress_notifications`.
|
||||
|
||||
.. versionadded:: 2.2
|
||||
"""
|
||||
return 4096
|
||||
|
||||
|
||||
@fill_with_flags()
|
||||
class PublicUserFlags(BaseFlags):
|
||||
|
Reference in New Issue
Block a user