From 5ad83a6a65e5944ceb3a41fee2df40ba1f5b03e4 Mon Sep 17 00:00:00 2001 From: BannerBomb Date: Tue, 29 Jun 2021 08:25:01 -0400 Subject: [PATCH] fix(Webhook): return void from #delete for consistency. (#5954) --- 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 e853f8845..ccf1514a1 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 }); } /**