summaryrefslogtreecommitdiffstats
path: root/src/client/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/commands.rs')
-rw-r--r--src/client/commands.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/commands.rs b/src/client/commands.rs
new file mode 100644
index 0000000..3d9427d
--- /dev/null
+++ b/src/client/commands.rs
@@ -0,0 +1,11 @@
+use super::types::*;
+use super::ClientLike;
+use crate::error::Result;
+use serde_json::json;
+use std::future::Future;
+
+impl super::Client {
+ pub fn get_me(&self) -> impl Future<Output = Result<User>> {
+ self.send(json!({"@type": "getMe"}))
+ }
+}