export interface CreateMessageOptions extends RESTPostAPIChannelMessageJSONBodyoptionalexternalallowed_mentions? : APIAllowedMentions | undefined
Allowed mentions for a message
Inherited from: RESTPostAPIChannelMessageJSONBody
See also: https://discord.com/developers/docs/resources/channel#allowed-mentions-object
optionalexternalattachments? : RESTAPIAttachment[] | undefined
Attachment objects with filename and description
Inherited from: RESTPostAPIChannelMessageJSONBody
optionalexternalcomponents? : APIMessageTopLevelComponent[] | undefined
The components to include with the message
Inherited from: RESTPostAPIChannelMessageJSONBody
See also: https://discord.com/developers/docs/components/reference
The message contents (up to 2000 characters)
Inherited from: RESTPostAPIChannelMessageJSONBody
Embedded rich content (up to 6000 characters)
Inherited from: RESTPostAPIChannelMessageJSONBody
See also: https://discord.com/developers/docs/resources/channel#embed-object
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
optionalfiles? : RawFile[]
optionalexternalflags? : MessageFlags | undefined
Message flags combined as a bitfield
Inherited from: RESTPostAPIChannelMessageJSONBody
optionalexternalmessage_reference? : RESTAPIMessageReference | undefined
Include to make your message a reply or a forward
Inherited from: RESTPostAPIChannelMessageJSONBody
A nonce that can be used for optimistic message sending
Inherited from: RESTPostAPIChannelMessageJSONBody
optionalexternalpoll? : RESTAPIPoll | undefined
A poll!
Inherited from: RESTPostAPIChannelMessageJSONBody
optionalexternalsticker_ids? : [Snowflake, Snowflake, Snowflake] | [Snowflake, Snowflake] | [Snowflake] | undefined
IDs of up to 3 stickers in the server to send in the message
Inherited from: RESTPostAPIChannelMessageJSONBody
See also: https://discord.com/developers/docs/resources/sticker#sticker-object
true if this is a TTS message
Inherited from: RESTPostAPIChannelMessageJSONBody