From 6efe6a3d5453cce97786c0218f29a1380f174308 Mon Sep 17 00:00:00 2001 From: Alex Gravely Date: Thu, 18 Oct 2018 14:21:47 -0400 Subject: [PATCH] Update joining_audio.cs --- docs/guides/voice/samples/joining_audio.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/guides/voice/samples/joining_audio.cs b/docs/guides/voice/samples/joining_audio.cs index 4cec67540..3abbfb632 100644 --- a/docs/guides/voice/samples/joining_audio.cs +++ b/docs/guides/voice/samples/joining_audio.cs @@ -1,4 +1,5 @@ -[Command("join")] +// The command's Run Mode MUST be set to RunMode.Async, otherwise, being connected to a voice channel will block the gateway thread. +[Command("join", RunMode = RunMode.Async)] public async Task JoinChannel(IVoiceChannel channel = null) { // Get the audio channel