Skip to main content
Module

x/discord_api_types/v8.ts>RESTPostAPIWebhookWithTokenJSONBody

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface RESTPostAPIWebhookWithTokenJSONBody
Re-export
Deprecated
Deprecated

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

import { type RESTPostAPIWebhookWithTokenJSONBody } from "https://deno.land/x/discord_api_types@0.37.82/v8.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: (Partial<Pick<APIAttachment, "filename">> & Pick<APIAttachment, "description" | "id">)[] | undefined

Attachment objects with filename and description

optional
flags: MessageFlags | undefined

Message flags combined as a bitfield