RESTPostAPIChannelMessageJSONBody
https://discord.com/developers/docs/resources/channel#create-message
Signature
export interface RESTPostAPIChannelMessageJSONBodyProperties
13Methods
0No methods.
Properties
content?: string | undefined;The message contents (up to 2000 characters)
nonce?: number | string | undefined;A nonce that can be used for optimistic message sending
tts?: boolean | undefined;`true` if this is a TTS message
embeds?: APIEmbed[] | undefined;Embedded `rich` content (up to 6000 characters) See https://discord.com/developers/docs/resources/channel#embed-object
allowed_mentions?: APIAllowedMentions | undefined;Allowed mentions for a message See https://discord.com/developers/docs/resources/channel#allowed-mentions-object
message_reference?: RESTAPIMessageReference | undefined;Include to make your message a reply See https://discord.com/developers/docs/resources/channel#message-reference-object-message-reference-structure
components?: APITopLevelComponent[] | undefined;The components to include with the message See https://discord.com/developers/docs/interactions/message-components#component-object
sticker_ids?: [ Snowflake, Snowflake, Snowflake] | [ Snowflake, Snowflake] | [ Snowflake] | undefined;IDs of up to 3 stickers in the server to send in the message See https://discord.com/developers/docs/resources/sticker#sticker-object
attachments?: RESTAPIAttachment[] | undefined;Attachment objects with filename and description
flags?: MessageFlags | undefined;Message flags combined as a bitfield
enforce_nonce?: boolean | undefined;If `true` and nonce is present, it will be checked for uniqueness in the past few minutes. If another message was created by the same author with the same nonce, that message will be returned and no new message will be created.
poll?: RESTAPIPollCreate | undefined;A poll!
shared_client_theme?: APIMessageSharedClientTheme | undefined;The custom client-side theme to share via the message