Module
x/discord_api_types/rest/v6/webhook.ts
Up to date Discord API Typings, versioned by the API version
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147import type { APIAllowedMentionsSend } from './channel.ts';import type { APIEmbed, APIMessage, APIWebhook } from '../../payloads/v6/mod.ts';
/** * https://discord.com/developers/docs/resources/webhook#create-webhook * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export interface RESTPostAPIChannelWebhookJSONBody { name: string; avatar?: string | null;}
/** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTPostAPIChannelWebhookResult = APIWebhook;
/** * https://discord.com/developers/docs/resources/webhook#get-channel-webhooks * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTGetAPIChannelWebhooksResult = APIWebhook[];
/** * https://discord.com/developers/docs/resources/webhook#get-guild-webhooks * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTGetAPIGuildWebhooksResult = APIWebhook[];
/** * https://discord.com/developers/docs/resources/webhook#get-webhook * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTGetAPIWebhookResult = APIWebhook;
/** * https://discord.com/developers/docs/resources/webhook#get-webhook-with-token * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTGetAPIWebhookWithTokenResult = Omit<APIWebhook, 'user'>;
/** * https://discord.com/developers/docs/resources/webhook#modify-webhook * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export interface RESTPatchAPIWebhookJSONBody { name?: string; avatar?: string | null; channel_id?: string;}
/** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTPatchAPIWebhookResult = APIWebhook;
/** * https://discord.com/developers/docs/resources/webhook#modify-webhook-with-token * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTPatchAPIWebhookWithTokenJSONBody = Omit<RESTPatchAPIWebhookJSONBody, 'channel_id'>;
/** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTPatchAPIWebhookWithTokenResult = Omit<APIWebhook, 'user'>;
/** * https://discord.com/developers/docs/resources/webhook#delete-webhook * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTDeleteAPIWebhookResult = never;
/** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTDeleteAPIWebhookWithTokenResult = never;
/** * https://discord.com/developers/docs/resources/webhook#execute-webhook * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export interface RESTPostAPIWebhookWithTokenJSONBody { content?: string; username?: string; avatar_url?: string; tts?: boolean; embeds?: APIEmbed[]; allowed_mentions?: APIAllowedMentionsSend;}
/** * https://discord.com/developers/docs/resources/webhook#execute-webhook * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTPostAPIWebhookWithTokenFormDataBody = | { /** * JSON stringified message body */ payload_json?: string; /** * The file contents */ file: unknown; } | (RESTPostAPIWebhookWithTokenJSONBody & { /** * The file contents */ file: unknown; });
/** * https://discord.com/developers/docs/resources/webhook#execute-webhook-querystring-params * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export interface RESTPostAPIWebhookWithTokenQuery { wait?: boolean;}
/** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTPostAPIWebhookWithTokenResult = never;
/** * Received when a call to POST `/webhooks/{webhook.id}/{webhook.token}` receives * the `wait` query parameter set to `true` * * @see https://discord.com/developers/docs/resources/webhook#execute-webhook-querystring-params * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTPostAPIWebhookWithTokenWaitResult = APIMessage;
/** * https://discord.com/developers/docs/resources/webhook#execute-slackcompatible-webhook-querystring-params * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTPostAPIWebhookWithTokenSlackQuery = RESTPostAPIWebhookWithTokenQuery;
/** * https://discord.com/developers/docs/resources/webhook#execute-githubcompatible-webhook-querystring-params * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTPostAPIWebhookWithTokenGitHubQuery = RESTPostAPIWebhookWithTokenQuery;