From 39b6c5b4492fdf3d1a6fd06f3409528f0efbd324 Mon Sep 17 00:00:00 2001 From: KubaZ2 Date: Mon, 26 Aug 2024 11:29:25 +0200 Subject: [PATCH] Update tests and guides --- Documentation/guides/advanced/Voice/VoiceModule.cs | 6 ------ Documentation/guides/advanced/voice.md | 4 ++-- Tests/NetCord.Test/ApplicationCommands/VoiceCommands.cs | 1 - Tests/NetCord.Test/Program.cs | 1 - 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Documentation/guides/advanced/Voice/VoiceModule.cs b/Documentation/guides/advanced/Voice/VoiceModule.cs index 3da53139..f49239e2 100644 --- a/Documentation/guides/advanced/Voice/VoiceModule.cs +++ b/Documentation/guides/advanced/Voice/VoiceModule.cs @@ -34,9 +34,6 @@ public async Task PlayAsync(string track) // Connect await voiceClient.StartAsync(); - // Wait for ready - await voiceClient.ReadyAsync; - // Enter speaking state, to be able to send voice await voiceClient.EnterSpeakingStateAsync(SpeakingFlags.Microphone); @@ -124,9 +121,6 @@ public async Task EchoAsync() // Connect await voiceClient.StartAsync(); - // Wait for ready - await voiceClient.ReadyAsync; - // Enter speaking state, to be able to send voice await voiceClient.EnterSpeakingStateAsync(SpeakingFlags.Microphone); diff --git a/Documentation/guides/advanced/voice.md b/Documentation/guides/advanced/voice.md index 6006001b..d55ad849 100644 --- a/Documentation/guides/advanced/voice.md +++ b/Documentation/guides/advanced/voice.md @@ -10,7 +10,7 @@ Follow the [installation guide](installing-native-dependencies.md) to install th > In the following examples streams and @NetCord.Gateway.Voice.VoiceClient instances are not disposed because they should be stored somewhere and disposed later. ### Sending Voice -[!code-cs[VoiceModule.cs](Voice/VoiceModule.cs#L12-L102)] +[!code-cs[VoiceModule.cs](Voice/VoiceModule.cs#L12-L99)] ### Receiving Voice -[!code-cs[VoiceModule.cs](Voice/VoiceModule.cs#L104-L146)] \ No newline at end of file +[!code-cs[VoiceModule.cs](Voice/VoiceModule.cs#L101-L141)] \ No newline at end of file diff --git a/Tests/NetCord.Test/ApplicationCommands/VoiceCommands.cs b/Tests/NetCord.Test/ApplicationCommands/VoiceCommands.cs index 13508475..8c1c88f4 100644 --- a/Tests/NetCord.Test/ApplicationCommands/VoiceCommands.cs +++ b/Tests/NetCord.Test/ApplicationCommands/VoiceCommands.cs @@ -57,7 +57,6 @@ private async Task JoinAsync(VoiceEncryption encryption, Func