From 96fbb43f770bbd6b98a9b7fda9b7e0109d8738a6 Mon Sep 17 00:00:00 2001 From: Alex Gravely Date: Fri, 19 Oct 2018 16:41:27 -0400 Subject: [PATCH] docs: Update joining_audio.cs (#1176) --- 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