public async Task LeaveTask() { if (_lavalinkManager.GetPlayer(Context.Guild.Id).Playing) { await StopTask(); } await _lavalinkManager.LeaveAsync(Context.Guild.Id); }
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); }
private async Task TrackStuck(LavalinkPlayer player, LavalinkTrack track, long str) { await _lavaManager.LeaveAsync(player.VoiceChannel.GuildId); }