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 listto more information.
Installation
cargo add panda
or in Cargo.toml
panda = "0.5.1"
Configuring async runtime
panda supports tokio and async-std runtimes, by default it uses tokio,
to use async-std change the feature flags in Cargo.toml
[]
= "0.5.1"
= false
= ["async-std-runtime"]
Example usage
It will print the bot name when the bot is ready.
async
All events are in the Discord Documentation, and to use it in client, you have to use client.on_ plus
the event in snake case.
TODO list
- Finish http requests.
- Improve panda error.
- Add voice support.
- Improve documentation.
- Add tests