diff --git a/lib/Structures/Channel.js b/lib/Structures/Channel.js index f8a141584..5f8090d38 100644 --- a/lib/Structures/Channel.js +++ b/lib/Structures/Channel.js @@ -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); diff --git a/src/Structures/Channel.js b/src/Structures/Channel.js index d1a213ca7..574b58732 100644 --- a/src/Structures/Channel.js +++ b/src/Structures/Channel.js @@ -12,6 +12,10 @@ class Channel extends Equality{ this.client = client; } + delete(){ + return this.client.internal.deleteChannel(this); + } + } module.exports = Channel; \ No newline at end of file