filthy-rich
Tiny Discord Rich Presence wrapper library for apps. Only <500 LOC! Insanely tiny.
[!NOTE] The minimum supported Rust version for this project is 1.82.0.
Easily add to your project using this command:
Features
- Really easy to implement; just create a client ID at the Discord Developer Portal and you're good to go.
- Asynchronous and enforces the tokio workflow.
- Persistent updates and convenient API.
- Auto-reconnect on failure.
Starter Snippets
Examples are included with the project. To get, first clone the repository:
- For an indefinitely running rich presence, see this (or see the blocking/sync version).
- For an timed, changing rich presence, see this (or see the blocking/sync version).
You can also run them to see how they work.
# First, clone and `cd` into the repository.
&&
# Run any of the examples:
API Reference
docs.rs: https://docs.rs/crate/filthy-rich/latest
Yet another library?
I'm not a fan of too much unnecessary boilerplate hovering around the code I use for my primary projects, so the primary goal for writing this library is to avoid Windows-specific binds.
The project is also only intended for actual binary apps, unless you have a matching stack to go with the library itself.
License
Licensed under MIT.