1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{SlackApiUserConversionResponse, SlackClient};
use serde_json::Value;

impl SlackClient {
    pub async fn user_conversations(&self) -> SlackApiUserConversionResponse {
        self.http_get(
            self.context.token.clone().unwrap().as_str(),
            "users.conversations",
            &Value::default(),
        )
        .await
        .unwrap()
    }
}