Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hypixel/helpers/PlayerRank.ts>getPlayerRank

With thorough IntelliSense support & 100% test coverage, this is an unopinionated async/await API wrapper for Hypixel's Public API. It is developed in TypeScript complete with documentation, typed interfaces for all API responses (and an OpenAPI 3.0 schema!), built-in rate-limit handling, flexible cache support, helper functions, and support for undocumented endpoints.
Latest
function getPlayerRank
import { getPlayerRank } from "https://deno.land/x/hypixel@v3.1.1/helpers/PlayerRank.ts";

Get an PlayerRank object describing the player's rank in more detail without the need to figure out how to parse it yourself.

Parameters

player: NonNullable<Components.Schemas.Player>

The result of client.player.uuid().

optional
onlyPackages = [UNSUPPORTED]

Whether to ignore their staff / youtube rank and only get their donor rank.