From 4e76251aa2f57ada7f69fc39a2275eb7a9fd4bca Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Wed, 14 Dec 2016 12:37:23 -0500 Subject: [PATCH] Fix some Gus stuff --- src/structures/Guild.js | 3 +-- src/structures/PermissionOverwrites.js | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index f4fabc809..83aae6a71 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -567,8 +567,7 @@ class Guild { * Creates a new channel in the guild. * @param {string} name The name of the new channel * @param {string} type The type of the new channel, either `text` or `voice` - * @param {Array.} overwrites - * Permissions overwrites to apply to the new channel + * @param {Array} overwrites Permission overwrites to apply to the new channel * @returns {Promise} * @example * // create a new text channel diff --git a/src/structures/PermissionOverwrites.js b/src/structures/PermissionOverwrites.js index 3e9ca073a..9b2f536f5 100644 --- a/src/structures/PermissionOverwrites.js +++ b/src/structures/PermissionOverwrites.js @@ -5,12 +5,11 @@ class PermissionOverwrites { constructor(guildChannel, data) { /** * The GuildChannel this overwrite is for + * @name PermissionOverwrites#channel * @type {GuildChannel} + * @readonly */ - Object.defineProperty(this, 'channel', { - value: guildChannel, - enumerable: false, - }); + Object.defineProperty(this, 'channel', { value: guildChannel }); if (data) this.setup(data); }