Preview environment

interface RESTPostAPIWebhookWithTokenJSONBody

export interface RESTPostAPIWebhookWithTokenJSONBody

https://discord.com/developers/docs/resources/webhook#execute-webhook

optional
allowed_mentions? : APIAllowedMentions | undefined

Allowed mentions for the messageSee https://discord.com/developers/docs/resources/channel#allowed-mentions-object

optional
applied_tags? : Snowflake[] | undefined

Array of tag ids to apply to the thread

optional
attachments? : RESTAPIAttachment[] | undefined

Attachment objects with filename and description

optional
avatar_url? : string | undefined

Override the default avatar of the webhook

The components to include with the messageRequires an application-owned webhookSee https://discord.com/developers/docs/interactions/message-components#component-object

optional
content? : string | undefined

The message contents (up to 2000 characters)

optional
embeds? : APIEmbed[] | undefined

Embedded rich contentSee https://discord.com/developers/docs/resources/channel#embed-object

optional
flags? : MessageFlags | undefined

Message flags combined as a bitfield

optional
poll? : RESTAPIPoll | undefined

A poll!

optional
thread_name? : string | undefined

Name of thread to createAvailable only if the webhook is in a forum channel and a thread is not specified in thread_id query parameter

optional
tts? : boolean | undefined

true if this is a TTS message

optional
username? : string | undefined

Override the default username of the webhook