docs.rs failed to build tauri-plugin-drpc-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Tauri Plugin DRPC
A plugin for Tauri that allows you to control Discord Rich Presence.
Installation
You can download plugin from crates.io
Usage example
import { setActivity } from "tauri-plugin-drpc";
import { Activity, Assets } from "tauri-plugin-drpc/activity";
const applicationClientId = "APP_ID_HERE";
const assets = new Assets()
.setLargeImage("IMAGE_ID")
.setLargeText("Large Image Text");
const activity = new Activity()
.setDetails("First line")
.setState("Second line")
.setAssets(assets);
(async () => {
await setActivity(activity);
// Spawn a discord rich presence thread
await start(applicationClientId);
})();