Appearance
@loontail/minecraft-kit v0.8.14 / MinecraftProfile
Type alias: MinecraftProfile
ts
type MinecraftProfile: {
skins: ReadonlyArray<MojangProfileSkin>;
username: string;
uuid: PlayerUuid;
};Snapshot of /minecraft/profile — uuid + display name + every skin slot Mojang has issued. Returned by every kit.auth.profile.* mutation so callers can refresh their UI without an extra round-trip.
Example
ts
import type { MinecraftProfile } from "@loontail/minecraft-kit";
const next: MinecraftProfile = await kit.auth.profile.resetSkin({
accessToken: session.minecraft.accessToken,
});
console.log(next.skins.filter((s) => s.state === "ACTIVE")); // → []Type declaration
| Member | Type |
|---|---|
skins | ReadonlyArray<MojangProfileSkin> |
username | string |
uuid | PlayerUuid |