Skip to content

kostya-main/discord-rpc

 
 

Repository files navigation


@kostya-main/discord-rpc


npm version discord license

About

@kostya-main/discord-rpc is a fork of discordjs/RPC with type safety and some additional features. The difference from xhayper/discord-rpc is that ws does not use the native modules utf-8-validate and bufferutil.

Example

import { Client } from "@kostya-main/discord-rpc";

const client = new Client({
    clientId: "123456789012345678"
});

client.on("ready", () => {
    client.user?.setActivity({
        state: "Hello, world!"
    });
});

client.login();

Compatibility

OS Normal snap flatpak
Windows Y - -
macOS Y - -
Linux Y Y Y
  • Linux is tested on Kubuntu 22.04

Credits

About

a fork of discordjs/RPC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%