refactor(Channel): make delete async (#6417)

This commit is contained in:
Sugden
2021-08-14 03:50:53 +01:00
committed by GitHub
parent 759faa4174
commit 71fdf6fae0

View File

@@ -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;
}
/**