Skip to main content
Version: 0.37.97

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?: (Partial<Pick<APIAttachment, filename>> & Pick<APIAttachment, description | id>)[]

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