Ensure the required gateway intent is available when connected to audio (#3108)
This commit is contained in:
@@ -1748,6 +1748,8 @@ namespace Discord.WebSocket
|
||||
}
|
||||
internal async Task<IAudioClient> ConnectAudioAsync(ulong channelId, bool selfDeaf, bool selfMute, bool external, bool disconnect = true)
|
||||
{
|
||||
Discord.EnsureGatewayIntent(GatewayIntents.GuildVoiceStates);
|
||||
|
||||
TaskCompletionSource<AudioClient> promise;
|
||||
|
||||
await _audioLock.WaitAsync().ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user