mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-08-28 05:55:27 +00:00
Use List[Component] in docs instead of spelling them all out
This commit is contained in:
parent
24aa98b923
commit
283ed20956
@ -488,7 +488,7 @@ class MessageSnapshot:
|
|||||||
Extra features of the the message snapshot.
|
Extra features of the the message snapshot.
|
||||||
stickers: List[:class:`StickerItem`]
|
stickers: List[:class:`StickerItem`]
|
||||||
A list of sticker items given to the message.
|
A list of sticker items given to the message.
|
||||||
components: List[Union[:class:`ActionRow`, :class:`Button`, :class:`SelectMenu`, :class:`Container`, :class:`SectionComponent`, :class:`TextDisplay`, :class:`MediaGalleryComponent`, :class:`FileComponent`, :class:`SeparatorComponent`, :class:`ThumbnailComponent`]]
|
components: List[:class:`Component`]]
|
||||||
A list of components in the message.
|
A list of components in the message.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -2099,7 +2099,7 @@ class Message(PartialMessage, Hashable):
|
|||||||
A list of sticker items given to the message.
|
A list of sticker items given to the message.
|
||||||
|
|
||||||
.. versionadded:: 1.6
|
.. versionadded:: 1.6
|
||||||
components: List[Union[:class:`ActionRow`, :class:`Button`, :class:`SelectMenu`]]
|
components: List[:class:`Component`]
|
||||||
A list of components in the message.
|
A list of components in the message.
|
||||||
If :attr:`Intents.message_content` is not enabled this will always be an empty list
|
If :attr:`Intents.message_content` is not enabled this will always be an empty list
|
||||||
unless the bot is mentioned or the message is a direct message.
|
unless the bot is mentioned or the message is a direct message.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user