export interface WebhookMessageCreateOptions extends BaseMessageOptions, MessageOptionsPoll, MessageOptionsFlags, MessageOptionsTTS
Options that can be passed into send.
optionalMessageMentionOptions allowedMentions? :
Which mentions should be parsed from the message content (see here for more details)
Inherited from: BaseMessageOptions
optionalreadonly Snowflake[] appliedTags? :
The tags to apply to the created thread (only available if the webhook is in a forum channel)
optionalstring avatarURL? :
Avatar URL override for the message
optionalreadonly ( | ActionRowData<MessageActionRowComponentBuilder | MessageActionRowComponentData> | APIMessageTopLevelComponent | JSONEncodable<APIActionRowComponent<APIComponentInActionRow>> | JSONEncodable<APIMessageTopLevelComponent> | TopLevelComponentData )[] components? :
Action rows containing interactive components for the message (buttons, select menus) and other top-level components. When using components v2, the flag MessageFlags needs to be set and content
, embeds
, stickers
, and poll
cannot be used.
Inherited from: BaseMessageOptions
optionalstring = '' content? :
The content for the message. This can only be null
when editing a message.
Inherited from: BaseMessageOptions
optionalreadonly (APIEmbed | JSONEncodable<APIEmbed>)[] embeds? :
The embeds for the message
Inherited from: BaseMessageOptions
optionalreadonly ( | Attachment | AttachmentBuilder | AttachmentPayload | BufferResolvable | JSONEncodable<APIAttachment> | Stream )[] files? :
The files to send with the message.
Inherited from: BaseMessageOptions
externalMessageFlags flags :
Which flags to set for the message. Only the MessageFlags flag can be set.
optionalJSONEncodable<RESTAPIPoll> | PollData poll? :
Inherited from: MessageOptionsPoll
optionalSnowflake threadId? :
The id of the thread in the channel to send to. For interaction webhooks, this property is ignored
optionalstring threadName? :
Name of the thread to create (only available if the webhook is in a forum channel)
externalboolean tts :
Whether the message should be spoken aloud
optionalstring = this.name username? :
Username override for the message
optionalboolean withComponents? :
Whether to allow sending non-interactive components in the message. For application-owned webhooks, this property is ignored