diff --git a/src/main/kotlin/gg/skytils/skytilsmod/commands/stats/impl/SlayerCommand.kt b/src/main/kotlin/gg/skytils/skytilsmod/commands/stats/impl/SlayerCommand.kt index 950fdff75..20078c66e 100644 --- a/src/main/kotlin/gg/skytils/skytilsmod/commands/stats/impl/SlayerCommand.kt +++ b/src/main/kotlin/gg/skytils/skytilsmod/commands/stats/impl/SlayerCommand.kt @@ -43,7 +43,7 @@ object SlayerCommand : StatCommand("skytilsslayer", needProfile = false) { return } - val slayersObject = profileResponse.profile.members[uuid.nonDashedString()]?.slayerBosses?.ifNull { + val slayersObject = profileResponse.profile.members[uuid.nonDashedString()]?.slayer?.slayerBosses?.ifNull { printMessage("$failPrefix §cUnable to retrieve slayer information") return@ifNull } diff --git a/src/main/kotlin/gg/skytils/skytilsmod/utils/apiTools.kt b/src/main/kotlin/gg/skytils/skytilsmod/utils/apiTools.kt index 0facd6d70..e0449dabc 100644 --- a/src/main/kotlin/gg/skytils/skytilsmod/utils/apiTools.kt +++ b/src/main/kotlin/gg/skytils/skytilsmod/utils/apiTools.kt @@ -45,8 +45,13 @@ data class SkyblockProfile(val members: Map) @Serializable data class ProfileMember( + val slayer: SlayerData +) + +@Serializable +class SlayerData( @SerialName("slayer_bosses") - val slayerBosses: Map = emptyMap(), + val slayerBosses: Map = emptyMap() ) @Serializable