fix vc leave

This commit is contained in:
DjDeveloperr 2021-04-15 12:05:38 +05:30
parent f3da37bcb1
commit 9a72f66931

View file

@ -370,8 +370,18 @@ export class Gateway extends HarmonyEventEmitter<GatewayTypedEvents> {
: typeof channel === 'string'
? channel
: channel?.id,
self_mute: voiceOptions.mute === undefined ? false : voiceOptions.mute,
self_deaf: voiceOptions.deaf === undefined ? false : voiceOptions.deaf
self_mute:
channel === undefined
? undefined
: voiceOptions.mute === undefined
? false
: voiceOptions.mute,
self_deaf:
channel === undefined
? undefined
: voiceOptions.deaf === undefined
? false
: voiceOptions.deaf
}
})
}