Merge pull request #128 from DjDeveloperr/refactor

fix leaving voice channel
This commit is contained in:
DjDeveloper 2021-04-15 12:07:01 +05:30 committed by GitHub
commit ab19a6b624
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 2 deletions

View File

@ -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
} }
}) })
} }