Ejemplo n.º 1
0
        public async Task StopCmd()
        {
            LavalinkPlayer player = _lavaManager.GetPlayer(Context.Guild.Id);
            await player.StopAsync();

            await _lavaManager.LeaveAsync(Context.Guild.Id);
        }
        public static async Task RemoveAndPlay(LavalinkPlayer player, LavalinkTrack track)
        {
            var audioQueue = AudioQueues.GetAudioQueue(player.VoiceChannel.Guild as SocketGuild);

            RemoveTrack(audioQueue, track);
            await player.StopAsync();

            await PlayNextAfterRemove(audioQueue, player);
        }