mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
refactor(Channel): make delete async (#6417)
This commit is contained in:
@@ -93,11 +93,9 @@ class Channel extends Base {
|
|||||||
* .then(console.log)
|
* .then(console.log)
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
delete() {
|
async delete() {
|
||||||
return this.client.api
|
await this.client.api.channels(this.id).delete();
|
||||||
.channels(this.id)
|
return this;
|
||||||
.delete()
|
|
||||||
.then(() => this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user