Interface ServerChatJSONPacket
interface ServerChatJSONPacket {
cmd: "PrintJSON";
data: JSONMessagePart[];
message: string;
type: "ServerChat";
}
cmd: "PrintJSON";
data: JSONMessagePart[];
message: string;
type: "ServerChat";
}
Properties
Readonly
cmd
cmd
Readonly
data
All the textual metadata for this packet.
Readonly
message
message: string
Original chat message without sender prefix.
Readonly
type
type
The PrintJSONPacket subtype.
Sent to clients to broadcast a server-side chat message.
See
PrintJSONPacket for all possible
PrintJSON
packet subtypes.