public async Task Recents([Remainder] string playersName = null) { try { if (playersName == null) { await ReplyAsync(Strings.PlayerNameRequired); return; } var playerRep = new PlayerRepository(); await playerRep.GetPlayerByName(playersName); if (playerRep.Player == null) { await ReplyAsync(Strings.PlayerNotFound); return; } await ReplyAsync(embed : EmbedHelper.GetMatches($"{playerRep.Player.Name}'s Recent matches", playerRep.Player, Color.Red)); } catch (Exception e) { Console.WriteLine(e.ToString()); } }