FindLeaderboard() public static method

as above, but won't create the leaderboard if it's not found

This call is asynchronous, with the result returned in LeaderboardFindResult_t

public static FindLeaderboard ( string pchLeaderboardName ) : SteamAPICall_t
pchLeaderboardName string
return SteamAPICall_t
        public async Task ReplaceScore()
        {
            var leaderboard = await SteamUserStats.FindLeaderboard("Testleaderboard");

            Assert.IsTrue(leaderboard.HasValue);

            var result = await leaderboard.Value.ReplaceScore(576);

            Assert.IsTrue(result.HasValue);

            Console.WriteLine($"result.Changed: {result?.Changed}");
            Console.WriteLine($"result.OldGlobalRank: {result?.OldGlobalRank}");
            Console.WriteLine($"result.NewGlobalRank: {result?.NewGlobalRank}");
            Console.WriteLine($"result.RankChange: {result?.RankChange}");
            Console.WriteLine($"result.Score: {result?.Score}");
        }
        public async Task GetScoresAroundUserAsync()
        {
            var leaderboard = await SteamUserStats.FindLeaderboard("Testleaderboard");

            Assert.IsTrue(leaderboard.HasValue);

            // Get entries around user
            var relativeScores = await leaderboard.Value.GetScoresAroundUserAsync(-5, 5);

            Assert.IsNotNull(relativeScores);

            Console.WriteLine($"");
            Console.WriteLine($"Relative Scores:");
            foreach (var e in relativeScores)
            {
                Console.WriteLine($"{e.GlobalRank}: {e.Score} {e.User}");
            }
        }
        public async Task GetScoresAsync()
        {
            var leaderboard = await SteamUserStats.FindLeaderboard("Testleaderboard");

            Assert.IsTrue(leaderboard.HasValue);

            // Get top 20 global scores
            var globalsScores = await leaderboard.Value.GetScoresAsync(20);

            Assert.IsNotNull(globalsScores);

            Console.WriteLine($"");
            Console.WriteLine($"Global Scores:");
            foreach (var e in globalsScores)
            {
                Console.WriteLine($"{e.GlobalRank}: {e.Score} {e.User}");
            }
        }
        public async Task GetScoresFromFriends()
        {
            var leaderboard = await SteamUserStats.FindLeaderboard("Testleaderboard");

            Assert.IsTrue(leaderboard.HasValue);

            // Get entries around user
            var friendScores = await leaderboard.Value.GetScoresFromFriends();

            Assert.IsNotNull(friendScores);

            Console.WriteLine($"");
            Console.WriteLine($"Friend Scores:");
            foreach (var e in friendScores)
            {
                Console.WriteLine($"{e.GlobalRank}: {e.Score} {e.User}");
            }
        }
        public async Task FindLeaderboard()
        {
            var leaderboard = await SteamUserStats.FindLeaderboard("Testleaderboard");

            Assert.IsTrue(leaderboard.HasValue);
        }