mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 00:34:06 +00:00
Update documentation for discord.Message
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
parent
5426d19dc7
commit
55849d996e
@ -1311,11 +1311,15 @@ class Message(PartialMessage, Hashable):
|
||||
private channel or the user has the left the guild, then it is a :class:`User` instead.
|
||||
content: :class:`str`
|
||||
The actual contents of the message.
|
||||
If :attr:`Intents.message_content` is not enabled this will always be an empty string
|
||||
unless the bot is mentioned or the message is a direct message.
|
||||
nonce: Optional[Union[:class:`str`, :class:`int`]]
|
||||
The value used by the discord guild and the client to verify that the message is successfully sent.
|
||||
This is not stored long term within Discord's servers and is only used ephemerally.
|
||||
embeds: List[:class:`Embed`]
|
||||
A list of embeds the message has.
|
||||
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.
|
||||
channel: Union[:class:`TextChannel`, :class:`VoiceChannel`, :class:`Thread`, :class:`DMChannel`, :class:`GroupChannel`, :class:`PartialMessageable`]
|
||||
The :class:`TextChannel` or :class:`Thread` that the message was sent from.
|
||||
Could be a :class:`DMChannel` or :class:`GroupChannel` if it's a private message.
|
||||
@ -1357,6 +1361,8 @@ class Message(PartialMessage, Hashable):
|
||||
message.
|
||||
attachments: List[:class:`Attachment`]
|
||||
A list of attachments given to a message.
|
||||
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.
|
||||
pinned: :class:`bool`
|
||||
Specifies if the message is currently pinned.
|
||||
flags: :class:`MessageFlags`
|
||||
@ -1386,6 +1392,8 @@ class Message(PartialMessage, Hashable):
|
||||
.. versionadded:: 1.6
|
||||
components: List[Union[:class:`ActionRow`, :class:`Button`, :class:`SelectMenu`]]
|
||||
A list of components in the message.
|
||||
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.
|
||||
|
||||
.. versionadded:: 2.0
|
||||
interaction: Optional[:class:`MessageInteraction`]
|
||||
|
Loading…
x
Reference in New Issue
Block a user