Skip to main content
Version: 0.37.50

RESTPostAPIWebhookWithTokenJSONBody

Index

Properties

optionalallowed_mentions

allowed_mentions?: APIAllowedMentions

optionalattachments

attachments?: (Pick<APIAttachment, description | id> & Partial<Pick<APIAttachment, filename>>)[]

Attachment objects with filename and description

optionalavatar_url

avatar_url?: string

Override the default avatar of the webhook

optionalcomponents

The components to include with the message

optionalcontent

content?: string

The message contents (up to 2000 characters)

optionalembeds

embeds?: APIEmbed[]

optionalflags

flags?: MessageFlags

Message flags combined as a bitfield

optionalthread_name

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

optionaltts

tts?: boolean

true if this is a TTS message

optionalusername

username?: string

Override the default username of the webhook