declare class WebhooksAPI
create) : Promise<never> (
Creates a new webhook
Deletes a webhook
deleteMessage) : Promise<void> (
Deletes an associated message from a webhook
edit) : Promise<discord_api_types_v10.APIWebhook> (
Edits a webhook
editMessageid: Snowflaketoken: stringmessageId: Snowflakedata: RESTPatchAPIWebhookWithTokenMessageJSONBody & {
thread_id?: string;
}) : Promise<discord_api_types_v10.APIMessage> (
id: Snowflake
token: string
messageId: Snowflake
data: RESTPatchAPIWebhookWithTokenMessageJSONBody & {
thread_id?: string;
}
Edits an associated message from a webhook
Overload 1
Overload 2
executeid: Snowflaketoken: stringdata: RESTPostAPIWebhookWithTokenJSONBody & RESTPostAPIWebhookWithTokenQuery & {
files?: RawFile[];
wait: true;
}) : Promise<RESTPostAPIWebhookWithTokenWaitResult> (
id: Snowflake
token: string
data: RESTPostAPIWebhookWithTokenJSONBody & RESTPostAPIWebhookWithTokenQuery & {
files?: RawFile[];
wait: true;
}
Executes a webhook and returns the created message
executeGitHub) : Promise<void> (
Executes a github webhook
executeSlack) : Promise<void> (
Executes a slack webhook
get) : Promise<discord_api_types_v10.APIWebhook> (
Fetches a webhook
getMessage) : Promise<discord_api_types_v10.APIMessage> (
Fetches an associated message from a webhook