Skip to main content
Module

x/discord_api_types/v10.ts>RESTPostAPIWebhookWithTokenJSONBody

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface RESTPostAPIWebhookWithTokenJSONBody
Re-export
import { type RESTPostAPIWebhookWithTokenJSONBody } from "https://deno.land/x/discord_api_types@0.37.82/v10.ts";

Properties

optional
content: string | undefined

The message contents (up to 2000 characters)

optional
username: string | undefined

Override the default username of the webhook

optional
avatar_url: string | undefined

Override the default avatar of the webhook

optional
tts: boolean | undefined

true if this is a TTS message

optional
embeds: APIEmbed[] | undefined
optional
allowed_mentions: APIAllowedMentions | undefined
optional
components: APIActionRowComponent<APIMessageActionRowComponent>[] | undefined

The components to include with the message

Requires an application-owned webhook

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

optional
attachments: RESTAPIAttachment[] | undefined

Attachment objects with filename and description

optional
flags: MessageFlags | undefined

Message flags combined as a bitfield

optional
thread_name: string | undefined

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

optional
applied_tags: Snowflake[] | undefined

Array of tag ids to apply to the thread

optional
poll: RESTAPIPollCreate | undefined

A poll!