aboutsummaryrefslogtreecommitdiffstats
path: root/mumlib/src
diff options
context:
space:
mode:
Diffstat (limited to 'mumlib/src')
-rw-r--r--mumlib/src/command.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs
index d2e8477..847b7fd 100644
--- a/mumlib/src/command.rs
+++ b/mumlib/src/command.rs
@@ -29,6 +29,13 @@ pub enum Command {
},
Status,
UserVolumeSet(String, f32),
+ PastMessages {
+ block: bool,
+ },
+ SendMessage {
+ message: String,
+ targets: Vec<MessageTarget>,
+ }
}
#[derive(Debug, Deserialize, Serialize)]
@@ -55,4 +62,18 @@ pub enum CommandResponse {
Status {
server_state: Server,
},
+ PastMessage {
+ message: (String, String),
+ }
+}
+
+#[derive(Clone, Debug, Deserialize, Serialize)]
+pub enum MessageTarget {
+ Channel {
+ recursive: bool,
+ name: String,
+ },
+ User {
+ name: String,
+ }
}