five-on-it / packages/protocol/src/social / RoomCommand
Variable: RoomCommand
constRoomCommand:ZodDiscriminatedUnion<[ZodObject<{op:ZodLiteral<"say">;text:ZodString;type:ZodLiteral<"room">; },$strip>,ZodObject<{op:ZodLiteral<"quick">;phrase:ZodEnum<{follow:"follow";go:"go";hello:"hello";help:"help";nice:"nice";sorry:"sorry";thanks:"thanks";wait:"wait"; }>;type:ZodLiteral<"room">; },$strip>,ZodObject<{emote:ZodEnum<{clap:"clap";facepalm:"facepalm";laugh:"laugh";shrug:"shrug";thumbsUp:"thumbsUp";wave:"wave"; }>;op:ZodLiteral<"emote">;type:ZodLiteral<"room">; },$strip>,ZodObject<{op:ZodLiteral<"voteKick">;target:ZodNumber;type:ZodLiteral<"room">; },$strip>,ZodObject<{op:ZodLiteral<"vote">;type:ZodLiteral<"room">;yes:ZodBoolean; },$strip>],"op">
Defined in: packages/protocol/src/social.ts:56
What a player asks of the room: say a line (trimmed, at most CHAT_MAX characters), a quick phrase or an emote by its id, start a vote to kick a player (voteKick, by client id) or vote on the one under way (vote, yes or no).