feat: add /mod summon

This commit is contained in:
Evan Carroll 2026-01-20 21:48:04 -06:00
parent 864cfaec54
commit 45a7e44b3a
11 changed files with 598 additions and 5 deletions

View file

@ -90,6 +90,14 @@ pub enum ClientMessage {
/// Scene ID to teleport to.
scene_id: Uuid,
},
/// Moderator command (only processed if sender is a moderator).
ModCommand {
/// Subcommand name ("summon", "avatar", "teleport", "ban", etc.).
subcommand: String,
/// Arguments for the subcommand.
args: Vec<String>,
},
}
/// Server-to-client WebSocket messages.
@ -234,4 +242,22 @@ pub enum ServerMessage {
/// Scene slug for URL.
scene_slug: String,
},
/// User has been summoned by a moderator - triggers teleport.
Summoned {
/// Scene ID to teleport to.
scene_id: Uuid,
/// Scene slug for URL.
scene_slug: String,
/// Display name of the moderator who summoned.
summoned_by: String,
},
/// Result of a moderator command.
ModCommandResult {
/// Whether the command succeeded.
success: bool,
/// Human-readable result message.
message: String,
},
}