Fix VoiceChannel#setName and ChannelData#userLimit is a only voice thing (#1771)

This commit is contained in:
SpaceEEC
2017-08-12 11:55:55 +02:00
committed by Crawl
parent fbdf028b86
commit 8034c0437d

View File

@@ -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,