Skip to main content
Version: 0.37.82

RESTPostAPIWebhookWithTokenJSONBody

Index

Properties

optionalallowed_mentions

allowed_mentions?: APIAllowedMentions

optionalapplied_tags

applied_tags?: string[]

Array of tag ids to apply to the thread

optionalattachments

attachments?: RESTAPIAttachment[]

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

optionalpoll

A poll!

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