Appearance
@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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
accessToken | readonly | string | Minecraft bearer (session.minecraft.accessToken). | src/auth/profile-mutations.ts:102 |
signal? | readonly | AbortSignal | - | src/auth/profile-mutations.ts:107 |
url | readonly | string | Publicly-reachable URL Mojang will download the skin PNG from. | src/auth/profile-mutations.ts:104 |
variant | readonly | SkinVariant | Skin model variant — "CLASSIC" for standard arms, "SLIM" for Alex. | src/auth/profile-mutations.ts:106 |