mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
Fix VoiceChannel#setName and ChannelData#userLimit is a only voice thing (#1771)
This commit is contained in:
@@ -202,7 +202,7 @@ class GuildChannel extends Channel {
|
|||||||
* @property {number} [position] The position of the channel
|
* @property {number} [position] The position of the channel
|
||||||
* @property {string} [topic] The topic of the text channel
|
* @property {string} [topic] The topic of the text channel
|
||||||
* @property {number} [bitrate] The bitrate of the voice 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(),
|
name: (data.name || this.name).trim(),
|
||||||
topic: data.topic || this.topic,
|
topic: data.topic || this.topic,
|
||||||
position: data.position || this.position,
|
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,
|
user_limit: data.userLimit || this.userLimit,
|
||||||
},
|
},
|
||||||
reason,
|
reason,
|
||||||
|
|||||||
Reference in New Issue
Block a user