aboutsummaryrefslogtreecommitdiffstats
path: root/mumlib/src/command.rs
diff options
context:
space:
mode:
authorKapten Z∅∅m <55669224+default-username-852@users.noreply.github.com>2021-06-06 23:19:05 +0200
committerGitHub <noreply@github.com>2021-06-06 23:19:05 +0200
commit360b232de29f0104a8beb0c57e8defd9e54c9e6c (patch)
tree3595d6ae9dbe293ef0403ce581edd4742569147c /mumlib/src/command.rs
parentea8b1906e14c3b319d3ad184b6d7cfc507c23b4f (diff)
parent55a12fbdfb435886b2f211fe1fb00daafb32b6a7 (diff)
downloadmum-360b232de29f0104a8beb0c57e8defd9e54c9e6c.tar.gz
Merge pull request #92 from mum-rs/text-message
Text message
Diffstat (limited to 'mumlib/src/command.rs')
-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,
+ }
}