mirror of
https://github.com/minescope/mineping.git
synced 2025-01-31 09:17:31 +03:00
Update outdated JavaPingResponse type
This commit is contained in:
parent
7cd3444a4f
commit
31c58ee637
23
types/lib/java.d.ts
vendored
23
types/lib/java.d.ts
vendored
@ -1,5 +1,20 @@
|
||||
import { PingOptions } from "./bedrock";
|
||||
|
||||
/**
|
||||
* JSON format chat component used for description field.
|
||||
* @see https://wiki.vg/Chat
|
||||
*/
|
||||
export type ChatComponent = {
|
||||
text: string;
|
||||
bold?: boolean;
|
||||
italic?: boolean;
|
||||
underlined?: boolean;
|
||||
strikethrough?: boolean;
|
||||
obfuscated?: boolean;
|
||||
color?: string;
|
||||
extra?: ChatComponent[];
|
||||
};
|
||||
|
||||
export type SampleProp = {
|
||||
name: string,
|
||||
id: string;
|
||||
@ -17,10 +32,12 @@ export type JavaPingResponse = {
|
||||
players: {
|
||||
max: number;
|
||||
online: number;
|
||||
sample: SampleProp[];
|
||||
sample?: SampleProp[];
|
||||
};
|
||||
description: string;
|
||||
favicon: string;
|
||||
description: string | ChatComponent;
|
||||
favicon?: string;
|
||||
enforcesSecureChat?: boolean;
|
||||
previewsChat?: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user