aboutsummaryrefslogtreecommitdiffstats
path: root/mumlib
diff options
context:
space:
mode:
Diffstat (limited to 'mumlib')
-rw-r--r--mumlib/src/command.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs
index de54261..5155aaa 100644
--- a/mumlib/src/command.rs
+++ b/mumlib/src/command.rs
@@ -30,6 +30,10 @@ pub enum Command {
Status,
UserVolumeSet(String, f32),
PastMessages,
+ SendMessage {
+ message: String,
+ targets: Vec<MessageTarget>,
+ }
}
#[derive(Debug, Deserialize, Serialize)]
@@ -60,3 +64,14 @@ pub enum CommandResponse {
messages: Vec<(String, String)>,
}
}
+
+#[derive(Clone, Debug, Deserialize, Serialize)]
+pub enum MessageTarget {
+ Channel {
+ recursive: bool,
+ name: String,
+ },
+ User {
+ name: String,
+ }
+}