Example #1
0
            public async Task JoinVoiceChannel()
            {
                if (m_Service.GetDelayAction()) return;
                await m_Service.JoinAudioAsync(Context.Guild, (Context.User as IVoiceState).VoiceChannel);

                await m_Service.CheckAutoPlayAsync(Context.Guild, Context.Channel);
            }
Example #2
0
        public async Task JoinVoiceChannel()
        {
            if (m_Service.GetDelayAction())
            {
                return;                             // Stop multiple attempts to join too quickly.
            }
            await m_Service.JoinAudioAsync(Context.Guild, (Context.User as IVoiceState).VoiceChannel);

            // Start the autoplay service if enabled, but not yet started.
            await m_Service.CheckAutoPlayAsync(Context.Guild, Context.Channel);
        }