mirror of
https://github.com/danbulant/discord.js
synced 2026-06-21 07:42:36 +00:00
Fix updateChannel crashing (#456)
This commit is contained in:
parent
7ae7a9aa34
commit
cd2642c293
2 changed files with 2 additions and 2 deletions
|
|
@ -1668,7 +1668,7 @@ var InternalClient = (function () {
|
|||
topic: data.topic || channel.topic,
|
||||
position: data.position ? data.position : channel.position,
|
||||
user_limit: data.userLimit ? data.userLimit : channel.userLimit,
|
||||
bitrate: data.bitrate ? data.bitrate : channel.bitrate
|
||||
bitrate: data.bitrate ? data.bitrate : channel.bitrate ? channel.bitrate : undefined
|
||||
};
|
||||
|
||||
if (data.position < 0) {
|
||||
|
|
|
|||
|
|
@ -1457,7 +1457,7 @@ export default class InternalClient {
|
|||
topic: data.topic || channel.topic,
|
||||
position: (data.position ? data.position : channel.position),
|
||||
user_limit: (data.userLimit ? data.userLimit : channel.userLimit),
|
||||
bitrate: (data.bitrate ? data.bitrate : channel.bitrate)
|
||||
bitrate: (data.bitrate ? data.bitrate : channel.bitrate ? channel.bitrate : undefined)
|
||||
}
|
||||
|
||||
if (data.position < 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue