add GuildChannel#clone (#973)

* add GuildChannel#clone

* e
This commit is contained in:
Gus Caplan
2016-12-11 03:07:52 -06:00
committed by Amish Shah
parent 710d3db94f
commit d766e727a1
4 changed files with 27 additions and 10 deletions

View File

@@ -7,7 +7,10 @@ class PermissionOverwrites {
* The GuildChannel this overwrite is for
* @type {GuildChannel}
*/
this.channel = guildChannel;
Object.defineProperty(this, 'channel', {
value: guildChannel,
enumerable: false,
});
if (data) this.setup(data);
}
@@ -25,8 +28,8 @@ class PermissionOverwrites {
*/
this.type = data.type;
this.denyData = data.deny;
this.allowData = data.allow;
this.deny = data.deny;
this.allow = data.allow;
}
/**