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.60/v8.ts";
Properties
optional
embeds: APIEmbed[] | undefinedEmbedded rich
content
See https://discord.com/developers/docs/resources/channel#embed-object
optional
allowed_mentions: APIAllowedMentions | undefinedAllowed mentions for the message
See https://discord.com/developers/docs/resources/channel#allowed-mentions-object
optional
components: APIActionRowComponent<APIMessageActionRowComponent>[] | undefinedThe components to include with the message
Requires an application-owned webhook
See https://discord.com/developers/docs/interactions/message-components#component-object
optional
attachments: (Pick<APIAttachment, "id" | "description"> & Partial<Pick<APIAttachment, "filename">>)[] | undefinedAttachment objects with filename and description
optional
flags: MessageFlags | undefinedMessage flags combined as a bitfield