SkyBlock Profile Skills

Helpers
  • Helper
  • Skyblock
  • Skills

# SkyBlock Profile Skills

# Introduction

The getSkyBlockProfileMemberSkills() helper takes a SkyBlock profile member object (obtained here or here) and the skills resource to get usable skill information of a profile member. Additionally, for displaying skill levels in roman numerals (as you would see ingame) you can use the romanize() helper.

# Example

import { Client as Hypixel, getSkyBlockProfileMemberSkills, romanize } from "@zikeji/hypixel";
const client = new Hypixel("API_KEY");
(async () => {
  const profile = await client.skyblock.profile("ec1811e6822b4843bcd4fef82f75deb7");
  const skillsResource = await client.resources.skyblock.skills();

  const skills = getSkyBlockProfileMemberSkills(profile.members["ec1811e6822b4843bcd4fef82f75deb7"], skillsResource);

  console.log(skills);
  // output:
  {FARMING: {}, MINING: {}, COMBAT: {}, DUNGEONEERING: {}, FORAGING: {},}

  console.log(skills.ALCHEMY);
  // output:
  {name: "Alchemy", description: "Brew potions to earn Alchemy XP!", level: 50, exp: 55823363.920003295, totalExpToLevel: 55172425,}

  console.log(romanize(skills.ALCHEMY.level));
  // output:
  "L"
})();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Last update: September 17, 2024 03:06