declare class WebhooksAPI
create) : Promise<never> (
Creates a new webhook
See also: https://discord.com/developers/docs/resources/webhook#create-webhook
Deletes a webhook
See also: https://discord.com/developers/docs/resources/webhook#delete-webhookhttps://discord.com/developers/docs/resources/webhook#delete-webhook-with-token
deleteMessage) : Promise<void> (
Deletes an associated message from a webhook
See also: https://discord.com/developers/docs/resources/webhook#delete-webhook-message
edit) : Promise<discord_api_types_v10.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: Snowflakedata: RESTPatchAPIWebhookWithTokenMessageJSONBody & {
thread_id?: string;
}) : Promise<discord_api_types_v10.APIMessage> (
Edits an associated message from a webhook
See also: https://discord.com/developers/docs/resources/webhook#edit-webhook-message
executeid: Snowflaketoken: stringdata: RESTPostAPIWebhookWithTokenJSONBody & RESTPostAPIWebhookWithTokenQuery & {
files?: RawFile[];
wait: true;
}) : 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<discord_api_types_v10.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<discord_api_types_v10.APIMessage> (
Fetches an associated message from a webhook
See also: https://discord.com/developers/docs/resources/webhook#get-webhook-message