runbot 0.0.6

QQ client framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::error::Result;
use crate::prelude::BotContext;

impl BotContext {
    pub async fn delete_friend(&self, user_id: i64) -> Result<()> {
        self.websocket_send(
            "delete_friend",
            serde_json::json!({
                "user_id": user_id,
            }),
        )
        .await?;
        Ok(())
    }
}