Crate boticordrs

Crate boticordrs 

Source
Expand description

§boticordrs

Crate for Boticord API

§Usage

Add this to your Cargo.toml

[dependencies]
boticordrs = "0.1.3"

§Example

use boticordrs::{BoticordClient};
use boticordrs::types::{BotStats};

#[tokio::main]
async fn main() {
    let client = BoticordClient::new("your token".to_string(), 2).expect("failed client");

    let stats = BotStats {servers: 2514, shards: 3, users: 338250};

    match client.post_bot_stats(stats).await {
        Ok(_) => {
            println!("Well Done!")
        },
        Err(e) => eprintln!("{}", e),
    }
}

Modules§

types

Structs§

BoticordClient
You can use it to make it much easier to use the Boticord API.

Enums§

BoticordError