summaryrefslogtreecommitdiffstats
path: root/src/client/commands.rs
blob: 3d9427d6dce72b9cf31608c52f5e8051ef58699a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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"}))
    }
}