Skip to main content
Version: 0.37.57

RESTPostAPIWebhookWithTokenJSONBody

@deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

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

optionaltts

tts?: boolean

true if this is a TTS message

optionalusername

username?: string

Override the default username of the webhook