fix vc leave
This commit is contained in:
parent
f3da37bcb1
commit
9a72f66931
1 changed files with 12 additions and 2 deletions
|
@ -370,8 +370,18 @@ export class Gateway extends HarmonyEventEmitter<GatewayTypedEvents> {
|
||||||
: typeof channel === 'string'
|
: typeof channel === 'string'
|
||||||
? channel
|
? channel
|
||||||
: channel?.id,
|
: channel?.id,
|
||||||
self_mute: voiceOptions.mute === undefined ? false : voiceOptions.mute,
|
self_mute:
|
||||||
self_deaf: voiceOptions.deaf === undefined ? false : voiceOptions.deaf
|
channel === undefined
|
||||||
|
? undefined
|
||||||
|
: voiceOptions.mute === undefined
|
||||||
|
? false
|
||||||
|
: voiceOptions.mute,
|
||||||
|
self_deaf:
|
||||||
|
channel === undefined
|
||||||
|
? undefined
|
||||||
|
: voiceOptions.deaf === undefined
|
||||||
|
? false
|
||||||
|
: voiceOptions.deaf
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue