Merge pull request #128 from DjDeveloperr/refactor
fix leaving voice channel
This commit is contained in:
		
						commit
						ab19a6b624
					
				
					 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue