<div align="center">
<img width="500" src="https://i.postimg.cc/RhwNMHtZ/banner.png" />
</div>
<hr />
<div align="center">
<a href="https://crates.io/crates/panda">
<img src="https://img.shields.io/crates/v/panda?style=flat-square">
</a>
<a href="https://docs.rs/panda">
<img src="https://img.shields.io/badge/docs-online-blue?style=flat-square" />
</a>
</div>
<br />
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
```
cargo add panda
```
or in `Cargo.toml`
```
panda = "0.4.2"
```
# Example usage
```rust
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut client = panda::new("your token here").await?;
client.on_ready(|s, ready| async move {
println!("Bot {} is ready", ready.user().username());
Ok(())
});
client.start().await?;
Ok(())
}
```
# TODO list
- Finish http requests.
- Improve panda error.
- Add voice support.
- Improve documentation.