Skip to content

@loontail/minecraft-kit / SetSkinFromUrlInput

Type Alias: SetSkinFromUrlInput

ts
type SetSkinFromUrlInput = {
  accessToken: string;
  signal?: AbortSignal;
  url: string;
  variant: SkinVariant;
};

Defined in: src/auth/profile-mutations.ts:100

Inputs to setSkinFromUrl.

Example

ts
import type { SetSkinFromUrlInput } from "@loontail/minecraft-kit";

const input: SetSkinFromUrlInput = {
  accessToken: session.minecraft.accessToken,
  url: "https://textures.minecraft.net/texture/<hash>",
  variant: "CLASSIC",
};

Properties

PropertyModifierTypeDescriptionDefined in
accessTokenreadonlystringMinecraft bearer (session.minecraft.accessToken).src/auth/profile-mutations.ts:102
signal?readonlyAbortSignal-src/auth/profile-mutations.ts:107
urlreadonlystringPublicly-reachable URL Mojang will download the skin PNG from.src/auth/profile-mutations.ts:104
variantreadonlySkinVariantSkin model variant — "CLASSIC" for standard arms, "SLIM" for Alex.src/auth/profile-mutations.ts:106

MIT License