Skip to content

Message content

message_content

Used to create a message's content.

Can also be parsed directly from a String, which is equivalent to only setting content.

Map entries #

Key Type Description
content String The content of the message.
attachments List of Attachments The attachments in the message.
stickers List of Stickers or Numbers The stickers in the message, specified by values or IDs.
embeds List of Embeds The embeds in the message.
components List of Lists of Components The rows of containers with components.1
allowed_mentions Allowed mentions Allowed mentions of the message.
reply_to Message The message to reply or reference to.
nonce String The nonce of the message.
tts Boolean Whether if this message should be read by text-to-speech.
ephemeral Boolean Whether if this message should only be visible to the user who invoked the interaction.2
suppress_embeds Boolean Whether if embeds should not be included.
suppress_notifications Boolean Whether if this message should suppress triggering push and desktop notifications.

Allowed mentions#

allowed_mentions

Used for configuring allowed mentions.

Note

All boolean values are false by default when allowed mentions is specified in your message content.
Otherwise when unspecified, they are true by default.

Map entries #

Key Type Description
mention_roles Boolean Whether if roles can be mentioned.
mention_users Boolean Whether if users can be mentioned.
mention_everyone Boolean Whether if @everyone and @here can be mentioned.
roles List of Strings Roles that should be mentioned, specified by their IDs.
users List of Strings Users that should be mentioned, specified by their IDs.

  1. Text inputs are not supported. 

  2. Only for interactions