Fixed voice region caching
This commit is contained in:
@@ -160,8 +160,6 @@ namespace Discord.WebSocket
|
||||
try
|
||||
{
|
||||
await ApiClient.ValidateToken().ConfigureAwait(false);
|
||||
var voiceRegions = await ApiClient.GetVoiceRegions().ConfigureAwait(false);
|
||||
_voiceRegions = voiceRegions.Select(x => new VoiceRegion(x)).ToImmutableDictionary(x => x.Id);
|
||||
}
|
||||
catch (HttpException ex)
|
||||
{
|
||||
@@ -169,6 +167,9 @@ namespace Discord.WebSocket
|
||||
}
|
||||
}
|
||||
|
||||
var voiceRegions = await ApiClient.GetVoiceRegions().ConfigureAwait(false);
|
||||
_voiceRegions = voiceRegions.Select(x => new VoiceRegion(x)).ToImmutableDictionary(x => x.Id);
|
||||
|
||||
LoginState = LoginState.LoggedIn;
|
||||
}
|
||||
catch (Exception)
|
||||
|
||||
Reference in New Issue
Block a user