Don't crash if a null config is passed to the constructor
This commit is contained in:
@@ -55,7 +55,7 @@ namespace Discord
|
||||
_config = config ?? new DiscordClientConfig();
|
||||
_config.Lock();
|
||||
|
||||
_enableVoice = config.VoiceMode != DiscordVoiceMode.Disabled && !config.EnableVoiceMultiserver;
|
||||
_enableVoice = _config.VoiceMode != DiscordVoiceMode.Disabled && !_config.EnableVoiceMultiserver;
|
||||
|
||||
_state = (int)DiscordClientState.Disconnected;
|
||||
_cancelToken = new CancellationToken(true);
|
||||
|
||||
Reference in New Issue
Block a user