mirror of
https://github.com/danbulant/discord.js
synced 2026-06-20 15:11:32 +00:00
Added channel.delete()
This commit is contained in:
parent
4973412439
commit
083244f744
2 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
Loading…
Reference in a new issue