interface MessageCreateOptions
extends
BaseMessageOptionsWithPollexport interface MessageCreateOptions extends BaseMessageOptionsWithPollThe options for sending a message.
optionalallowedMentions? : MessageMentionOptions
Which mentions should be parsed from the message content (see here for more details)
Inherited from: BaseMessageOptions
optionalcomponents? : readonly ( | JSONEncodable<APIMessageTopLevelComponent> | TopLevelComponentData | ActionRowData<MessageActionRowComponentData | MessageActionRowComponentBuilder> | APIMessageTopLevelComponent )[]
Action rows containing interactive components for the message (buttons, select menus) and other top-level components. When using components v2, the flag MessageFlags.IsComponentsV2 needs to be set and content, embeds, stickers, and poll cannot be used.
Inherited from: BaseMessageOptions
optionalcontent? : string
The content for the message. This can only be null when editing a message.
Inherited from: BaseMessageOptions
optionalembeds? : readonly (JSONEncodable<APIEmbed> | APIEmbed)[]
The embeds for the message
Inherited from: BaseMessageOptions
optionalenforceNonce? : boolean
optionalfiles? : readonly ( | BufferResolvable | Stream | JSONEncodable<APIAttachment> | Attachment | AttachmentBuilder | AttachmentPayload )[]
The files to send with the message.
Inherited from: BaseMessageOptions
optionalflags? : BitFieldResolvable<Extract<MessageFlagsString, 'SuppressEmbeds' | 'SuppressNotifications' | 'IsComponentsV2'>, MessageFlags.SuppressEmbeds | MessageFlags.SuppressNotifications | MessageFlags.IsComponentsV2> | undefined
optionalforward? : ForwardOptions
The options for forwarding a message
optionalreply? : ReplyOptions
The options for replying to a message