mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Add support for voice messages
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
@ -451,6 +451,14 @@ class MessageFlags(BaseFlags):
|
||||
"""
|
||||
return 4096
|
||||
|
||||
@flag_value
|
||||
def voice(self):
|
||||
""":class:`bool`: Returns ``True`` if the message is a voice message.
|
||||
|
||||
.. versionadded:: 2.3
|
||||
"""
|
||||
return 8192
|
||||
|
||||
|
||||
@fill_with_flags()
|
||||
class PublicUserFlags(BaseFlags):
|
||||
|
Reference in New Issue
Block a user