From f6fc234a23acdb488c99b10918e1135e68f347d8 Mon Sep 17 00:00:00 2001 From: Jaw0r3k Date: Sun, 22 Oct 2023 15:50:58 +0200 Subject: [PATCH] fix: use `super` on webhook delete Co-authored-by: Kyra --- packages/discord.js/src/client/WebhookClient.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/discord.js/src/client/WebhookClient.js b/packages/discord.js/src/client/WebhookClient.js index 5bb6412674f5..25f745b4f28f 100644 --- a/packages/discord.js/src/client/WebhookClient.js +++ b/packages/discord.js/src/client/WebhookClient.js @@ -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} + */ + delete(reason) { + return super.delete(reason); + } + /** * The options the webhook client was instantiated with. * @type {WebhookClientOptions} @@ -91,7 +100,6 @@ class WebhookClient extends BaseClient { sendSlackMessage() {} edit() {} - delete() {} deleteMessage() {} get createdTimestamp() {} get createdAt() {}