mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Add support for components V2
Co-authored-by: Michael H <michael@michaelhall.tech> Co-authored-by: Soheab <33902984+Soheab@users.noreply.github.com> Co-authored-by: owocado <24418520+owocado@users.noreply.github.com> Co-authored-by: Jay3332 <40323796+jay3332@users.noreply.github.com> Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
@ -500,6 +500,16 @@ class MessageFlags(BaseFlags):
|
||||
"""
|
||||
return 16384
|
||||
|
||||
@flag_value
|
||||
def components_v2(self):
|
||||
""":class:`bool`: Returns ``True`` if the message has Discord's v2 components.
|
||||
|
||||
Does not allow sending any ``content``, ``embed``, ``embeds``, ``stickers``, or ``poll``.
|
||||
|
||||
.. versionadded:: 2.6
|
||||
"""
|
||||
return 32768
|
||||
|
||||
|
||||
@fill_with_flags()
|
||||
class PublicUserFlags(BaseFlags):
|
||||
|
Reference in New Issue
Block a user