From 07b887cccd7ed963eba8aad29f02467a746c93f5 Mon Sep 17 00:00:00 2001 From: BannerBomb Date: Mon, 28 Jun 2021 17:43:36 -0400 Subject: [PATCH] Changed Webhook#delete to return void. --- src/structures/Webhook.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/structures/Webhook.js b/src/structures/Webhook.js index 301edcd10b27..9b7569a88fbe 100644 --- a/src/structures/Webhook.js +++ b/src/structures/Webhook.js @@ -293,10 +293,10 @@ class Webhook { /** * Deletes the webhook. * @param {string} [reason] Reason for deleting this webhook - * @returns {Promise} + * @returns {Promise} */ - delete(reason) { - return this.client.api.webhooks(this.id, this.token).delete({ reason }); + async delete(reason) { + await this.client.api.webhooks(this.id, this.token).delete({ reason }); } /**