panda 0.1.0

An async Rust library for Discord
Documentation

A powerful async Rust library for interacting with Discord's API

Even thought this library is usable, it still under development, so don't use for production yet.

Note that this library doesn't support the 100% of discord API yet, for example voice. See TODO list to more information.

Installation

panda supports a minimum of Rust 1.4.1

cargo add panda

or in Cargo.toml

panda = "0.0.1"

Example usage


#[async_std::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {

    let mut client = panda::new("token").await?;

    client.on_ready(|s, ready| async move {
        println!("Bot {} is ready", ready.user().username());
    });

    client.start().await?;
}