Discord Rich Presence

crates.io Docs

A simple, cross-platform crate to connect and send data to Discord's IPC. Special attention is given to sending rich presence data.

Example

```rust use discordrichpresence::{newclient, DiscordIpc}; use serdejson::json;

fn main() -> Result<(), Box> { let mut client = new_client("")?; client.connect()?;

client.set_activity(json!({
    "state": "foo",
    "details": "bar"
}))?;

client.close()?;
Ok(())

} ```