Skip to content

Commit

Permalink
fix: use super on webhook delete
Browse files Browse the repository at this point in the history
Co-authored-by: Kyra <kyradiscord@gmail.com>
  • Loading branch information
jaw0r3k and kyranet committed Oct 22, 2023
1 parent 8964504 commit f6fc234
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/discord.js/src/client/WebhookClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ class WebhookClient extends BaseClient {
Object.defineProperty(this, 'token', { value: token, writable: true, configurable: true });
}

/**
* Deletes the webhook.
* @param {string} [reason] Reason for deleting this webhook
* @returns {Promise<void>}
*/
delete(reason) {
return super.delete(reason);
}

/**
* The options the webhook client was instantiated with.
* @type {WebhookClientOptions}
Expand Down Expand Up @@ -91,7 +100,6 @@ class WebhookClient extends BaseClient {

sendSlackMessage() {}
edit() {}
delete() {}
deleteMessage() {}
get createdTimestamp() {}
get createdAt() {}
Expand Down

0 comments on commit f6fc234

Please sign in to comment.