mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
Quirky logic fix
This commit is contained in:
@@ -1352,9 +1352,9 @@ export default class InternalClient {
|
|||||||
data = {
|
data = {
|
||||||
name: data.name || channel.name,
|
name: data.name || channel.name,
|
||||||
topic: data.topic || channel.topic,
|
topic: data.topic || channel.topic,
|
||||||
position: data.position || channel.position,
|
position: (data.position ? data.position : channel.position),
|
||||||
user_limit: data.userLimit || channel.userLimit,
|
user_limit: (data.userLimit ? data.userLimit : channel.userLimit),
|
||||||
bitrate: data.bitrate || channel.bitrate
|
bitrate: (data.bitrate ? data.bitrate : channel.bitrate)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.position < 0) {
|
if (data.position < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user