About
@xhayper/discord-rpc
is a fork of discordjs/RPC with type safety and some additional features.
Looking for Deno version? Check out discord_rpc_deno!
Optional packages
Example
import { Client } from "@xhayper/discord-rpc";
const client = new Client({
clientId: "123456789012345678"
});
client.on("ready", () => {
client.user?.setActivity({
state: "Hello, world!"
});
});
client.login();
Complatibility
OS | Normal | Snap |
---|---|---|
Windows | Y | - |
macOS | Y | - |
Linux | Y | Y |
- Linux is tested on Kubuntu 22.04
Credits
- discordjs: Making discordjs/RPC
- JakeMakesStuff: Snap Support
- Snazzah: Snap Support
- leonardssh: Making coc-discord-rpc which inspried me to make this package due to how old discordjs/RPC is