From 8034c0437dacb5bcc39a79ebbe1fbecc145ea42f Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Sat, 12 Aug 2017 11:55:55 +0200 Subject: [PATCH] Fix VoiceChannel#setName and ChannelData#userLimit is a only voice thing (#1771) --- src/structures/GuildChannel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index 71c321c1f..e26c2f614 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -202,7 +202,7 @@ class GuildChannel extends Channel { * @property {number} [position] The position of the channel * @property {string} [topic] The topic of the text channel * @property {number} [bitrate] The bitrate of the voice channel - * @property {number} [userLimit] The user limit of the channel + * @property {number} [userLimit] The user limit of voice the channel */ /** @@ -222,7 +222,7 @@ class GuildChannel extends Channel { name: (data.name || this.name).trim(), topic: data.topic || this.topic, position: data.position || this.position, - bitrate: data.bitrate || this.bitrate, + bitrate: data.bitrate || (this.bitrate ? this.bitrate * 1000 : undefined), user_limit: data.userLimit || this.userLimit, }, reason,