Compare commits
2 Commits
7cd3444a4f
...
c3158ac925
Author | SHA1 | Date |
---|---|---|
Timofey Gelazoniya | c3158ac925 | |
sya-ri | 31c58ee637 |
|
@ -1,5 +1,20 @@
|
||||||
import { PingOptions } from "./bedrock";
|
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 = {
|
export type SampleProp = {
|
||||||
name: string,
|
name: string,
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -17,10 +32,12 @@ export type JavaPingResponse = {
|
||||||
players: {
|
players: {
|
||||||
max: number;
|
max: number;
|
||||||
online: number;
|
online: number;
|
||||||
sample: SampleProp[];
|
sample?: SampleProp[];
|
||||||
};
|
};
|
||||||
description: string;
|
description: string | ChatComponent;
|
||||||
favicon: string;
|
favicon?: string;
|
||||||
|
enforcesSecureChat?: boolean;
|
||||||
|
previewsChat?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue