Exemplo n.º 1
0
 public async Task LeaveTask()
 {
     if (_lavalinkManager.GetPlayer(Context.Guild.Id).Playing)
     {
         await StopTask();
     }
     await _lavalinkManager.LeaveAsync(Context.Guild.Id);
 }
Exemplo n.º 2
0
        public static async Task LeaveAsync(SocketGuild guild)
        {
            LavalinkPlayer player = lavalinkManager.GetPlayer(guild.Id);

            if (player == null)
            {
                return;
            }

            await lavalinkManager.LeaveAsync(guild.Id);

            await RemoveAllTracks(guild);
        }
Exemplo n.º 3
0
 private async Task TrackStuck(LavalinkPlayer player, LavalinkTrack track, long str)
 {
     await _lavaManager.LeaveAsync(player.VoiceChannel.GuildId);
 }