public async Task Clear(CommandContext ctx, [RemainingText] string pl = null) { if (pl == null) { pl = await SelectPL(ctx); if (pl == null) { return; } } var p = await PlaylistDB.GetPlaylistsSimple(ctx.Member.Id); if (!p.Any(x => x == pl)) { await ctx.RespondAsync(embed : new DiscordEmbedBuilder().WithTitle("Clear Playlist").WithDescription("**Error** You dont have a playlist with that name!").Build()); return; } await PlaylistDB.ClearList(pl, ctx.Member.Id); await ctx.RespondAsync(embed : new DiscordEmbedBuilder().WithTitle("Clear Playlist").WithDescription($"Cleared all songs from playlist -> {pl}!").Build()); }