TypeScript interfaces for Discord webhook API request/response bodies.
// Source: https://github.com/tiramisulabs/seyfert | License: MIT | Copyright 2024 socram03
// Provided via justclaw.it.com; keep this notice with the code.
import type { Snowflake } from '..';
import type {
APIAllowedMentions,
APIEmbed,
APIMessage,
APITopLevelComponent,
APIWebhook,
MessageFlags,
} from '../payloads';
import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, Nullable } from '../utils';
import type { RESTAPIAttachment } from './channel';
import type { RESTAPIPollCreate } from './poll';
/**
* https://docs.discord.com/developers/resources/webhook#create-webhook
*/
export interface RESTPostAPIChannelWebhookJSONBody {
/**
* Name of the webhook (1-80 characters)
*/
name: string;
/**
* Image for the default webhook avatar
*
* See https://docs.discor
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key