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/rest/v8/webhook.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: (Partial<Pick<APIAttachment, "filename">> & Pick<APIAttachment, "description" | "id">)[] | undefinedAttachment objects with filename and description
optional
flags: MessageFlags | undefinedMessage flags combined as a bitfield