Interface RESTPostAPIWebhookWithTokenJSONBody

Hierarchy

  • RESTPostAPIWebhookWithTokenJSONBody

Properties

allowed_mentions?: APIAllowedMentions
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

Requires an application-owned webhook

See https://discord.com/developers/docs/interactions/message-components#component-object

content?: string

The message contents (up to 2000 characters)

embeds?: APIEmbed[]
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 thread_id query parameter

tts?: boolean

true if this is a TTS message

username?: string

Override the default username of the webhook

Generated using TypeDoc