From 71fdf6fae0457bc5f2900a37cc2d28c587e7e54a Mon Sep 17 00:00:00 2001 From: Sugden <28943913+NotSugden@users.noreply.github.com> Date: Sat, 14 Aug 2021 03:50:53 +0100 Subject: [PATCH] refactor(Channel): make delete async (#6417) --- src/structures/Channel.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/structures/Channel.js b/src/structures/Channel.js index 6db653e96..3c0c0ed5a 100644 --- a/src/structures/Channel.js +++ b/src/structures/Channel.js @@ -93,11 +93,9 @@ class Channel extends Base { * .then(console.log) * .catch(console.error); */ - delete() { - return this.client.api - .channels(this.id) - .delete() - .then(() => this); + async delete() { + await this.client.api.channels(this.id).delete(); + return this; } /**