mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Added channel.delete()
This commit is contained in:
@@ -19,6 +19,10 @@ var Channel = (function (_Equality) {
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
Channel.prototype["delete"] = function _delete() {
|
||||
return this.client.internal.deleteChannel(this);
|
||||
};
|
||||
|
||||
return Channel;
|
||||
})(Equality);
|
||||
|
||||
|
||||
@@ -12,6 +12,10 @@ class Channel extends Equality{
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
delete(){
|
||||
return this.client.internal.deleteChannel(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = Channel;
|
||||
Reference in New Issue
Block a user