interface RESTPostAPIWebhookWithTokenJSONBody {
    allowed_mentions?: APIAllowedMentions;
    applied_tags?: string[];
    attachments?: RESTAPIAttachment[];
    avatar_url?: string;
    components?: APIMessageTopLevelComponent[];
    content?: string;
    embeds?: APIEmbed[];
    flags?: MessageFlags;
    poll?: RESTAPIPoll;
    thread_name?: string;
    tts?: boolean;
    username?: string;
}

Properties

allowed_mentions?: APIAllowedMentions

Allowed mentions for the message

applied_tags?: string[]

Array of tag ids to apply to the thread

attachments?: RESTAPIAttachment[]

Attachment objects with filename and description

avatar_url?: string

Override the default avatar of the webhook

The components to include with the message

Application-owned webhooks can always send components. Non-application-owned webhooks cannot send interactive components, and the components field will be ignored unless they set the with_components query param.

content?: string

The message contents (up to 2000 characters)

embeds?: APIEmbed[]

Embedded rich content

flags?: MessageFlags

Message flags combined as a bitfield

A poll!

thread_name?: string

Name of thread to create

Available only if the webhook is in a forum channel and a thread is not specified in RESTPostAPIWebhookWithTokenQuery.thread_id query parameter

tts?: boolean

true if this is a TTS message

username?: string

Override the default username of the webhook