export interface CreateMessageOptions extends RESTPostAPIChannelMessageJSONBody
optionalexternalAPIAllowedMentions | undefined allowed_mentions? :
Allowed mentions for a messageSee https://discord.com/developers/docs/resources/channel#allowed-mentions-object
Inherited from: RESTPostAPIChannelMessageJSONBody
optionalexternalRESTAPIAttachment[] | undefined attachments? :
Attachment objects with filename and description
Inherited from: RESTPostAPIChannelMessageJSONBody
optionalexternalAPIActionRowComponent<APIMessageActionRowComponent>[] | undefined components? :
The components to include with the messageSee https://discord.com/developers/docs/interactions/message-components#component-object
Inherited from: RESTPostAPIChannelMessageJSONBody
The message contents (up to 2000 characters)
Inherited from: RESTPostAPIChannelMessageJSONBody
Embedded rich
content (up to 6000 characters)See https://discord.com/developers/docs/resources/channel#embed-object
Inherited from: RESTPostAPIChannelMessageJSONBody
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.
Inherited from: RESTPostAPIChannelMessageJSONBody
optionalRawFile[] files? :
optionalexternalMessageFlags | undefined flags? :
Message flags combined as a bitfield
Inherited from: RESTPostAPIChannelMessageJSONBody
optionalexternalRESTAPIMessageReference | undefined message_reference? :
Include to make your message a reply or a forwardSee https://discord.com/developers/docs/resources/channel#message-reference-object-message-reference-structure
Inherited from: RESTPostAPIChannelMessageJSONBody
A nonce that can be used for optimistic message sending
Inherited from: RESTPostAPIChannelMessageJSONBody
optionalexternalRESTAPIPoll | undefined poll? :
A poll!
Inherited from: RESTPostAPIChannelMessageJSONBody
optionalexternal[Snowflake, Snowflake, Snowflake] | [Snowflake, Snowflake] | [Snowflake] | undefined sticker_ids? :
IDs of up to 3 stickers in the server to send in the messageSee https://discord.com/developers/docs/resources/sticker#sticker-object
Inherited from: RESTPostAPIChannelMessageJSONBody
true
if this is a TTS message
Inherited from: RESTPostAPIChannelMessageJSONBody