Interface ChatJSONPacket
interface ChatJSONPacket {
cmd: "PrintJSON";
data: JSONMessagePart[];
message: string;
slot: number;
team: number;
type: "Chat";
}
cmd: "PrintJSON";
data: JSONMessagePart[];
message: string;
slot: number;
team: number;
type: "Chat";
}
Properties
Readonly
cmd
cmd
Readonly
data
All the textual metadata for this packet.
Readonly
message
message: string
Original chat message without sender prefix.
Readonly
slot
slot: number
Slot of the triggering player.
Readonly
team
team: number
Team of the triggering player.
Readonly
type
type
The PrintJSONPacket subtype.
Sent to clients to broadcast a normal chat message.
See
PrintJSONPacket for all possible
PrintJSON
packet subtypes.