export declare class WebhooksAPI
createchannelId: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'>) : Promise<never> (
Creates a new webhook
See also: https://discord.com/developers/docs/resources/webhook#create-webhook
deleteid: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'> & {
token?: string | undefined;
}) : Promise<void> (
Deletes a webhook
See also: https://discord.com/developers/docs/resources/webhook#delete-webhookhttps://discord.com/developers/docs/resources/webhook#delete-webhook-with-token
deleteMessageid: Snowflaketoken: stringmessageId: Snowflakequery?: {
thread_id?: string;
}options?: Pick<RequestData, 'signal'>) : Promise<void> (
Deletes an associated message from a webhook
See also: https://discord.com/developers/docs/resources/webhook#delete-webhook-message
editid: Snowflakeoptions?: Pick<RequestData, 'reason' | 'signal'> & {
token?: string | undefined;
}) : Promise<APIWebhook> (
Edits a webhook
See also: https://discord.com/developers/docs/resources/webhook#modify-webhookhttps://discord.com/developers/docs/resources/webhook#modify-webhook-with-token
editMessageid: Snowflaketoken: stringmessageId: Snowflakebody: RESTPatchAPIWebhookWithTokenMessageJSONBody & {
thread_id?: string;
}options?: Pick<RequestData, 'signal'>) : Promise<APIMessage> (
Edits an associated message from a webhook
See also: https://discord.com/developers/docs/resources/webhook#edit-webhook-message
executeid: Snowflaketoken: stringbody: RESTPostAPIWebhookWithTokenJSONBody & RESTPostAPIWebhookWithTokenQuery & {
files?: RawFile[];
wait: true;
}options: Pick<RequestData, 'signal'>) : Promise<RESTPostAPIWebhookWithTokenWaitResult> (
Executes a webhook and returns the created message
See also: https://discord.com/developers/docs/resources/webhook#execute-webhook
executeGitHub) : Promise<void> (
Executes a github webhook
See also: https://discord.com/developers/docs/resources/webhook#execute-githubcompatible-webhook
executeSlack) : Promise<void> (
Executes a slack webhook
See also: https://discord.com/developers/docs/resources/webhook#execute-slackcompatible-webhook
get) : Promise<APIWebhook> (
Fetches a webhook
See also: https://discord.com/developers/docs/resources/webhook#get-webhookhttps://discord.com/developers/docs/resources/webhook#get-webhook-with-token
getMessage) : Promise<APIMessage> (
Fetches an associated message from a webhook
See also: https://discord.com/developers/docs/resources/webhook#get-webhook-message