mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 05:22:15 +00:00
Quirky logic fix
This commit is contained in:
parent
0f9741bb14
commit
16eb38a99e
1 changed files with 3 additions and 3 deletions
|
|
@ -1352,9 +1352,9 @@ export default class InternalClient {
|
|||
data = {
|
||||
name: data.name || channel.name,
|
||||
topic: data.topic || channel.topic,
|
||||
position: data.position || channel.position,
|
||||
user_limit: data.userLimit || channel.userLimit,
|
||||
bitrate: data.bitrate || channel.bitrate
|
||||
position: (data.position ? data.position : channel.position),
|
||||
user_limit: (data.userLimit ? data.userLimit : channel.userLimit),
|
||||
bitrate: (data.bitrate ? data.bitrate : channel.bitrate)
|
||||
}
|
||||
|
||||
if (data.position < 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue