47 lines
775 B
TypeScript
47 lines
775 B
TypeScript
|
// Generated by dts-bundle-generator v9.3.1
|
||
|
|
||
|
export type Player = {
|
||
|
/**
|
||
|
* The unique id of this player.
|
||
|
*/
|
||
|
uniqueId: string;
|
||
|
/**
|
||
|
* The username of this player.
|
||
|
*/
|
||
|
username: string;
|
||
|
/**
|
||
|
* The skin of this player.
|
||
|
*/
|
||
|
skin: Skin;
|
||
|
};
|
||
|
/**
|
||
|
* A skin for a {@link Player}.
|
||
|
*/
|
||
|
export type Skin = {
|
||
|
/**
|
||
|
* The texture URL of this skin.
|
||
|
*/
|
||
|
url: string;
|
||
|
/**
|
||
|
* The model of this skin.
|
||
|
*/
|
||
|
model: Model;
|
||
|
/**
|
||
|
* Is this skin legacy?
|
||
|
*/
|
||
|
legacy: boolean;
|
||
|
};
|
||
|
/**
|
||
|
* Possible models for a skin.
|
||
|
*/
|
||
|
export type Model = "default" | "slim";
|
||
|
/**
|
||
|
* Get a player by their username or UUID.
|
||
|
*
|
||
|
* @param query the query to search for the player by
|
||
|
* @returns the promised player
|
||
|
*/
|
||
|
export declare const getPlayer: (query: string) => Promise<Player>;
|
||
|
|
||
|
export {};
|