@xhayper/discord-rpc
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

@xhayper/discord-rpc


npm version discord license

About

@xhayper/discord-rpc is a fork of discordjs/RPC with type safety and some additional features.

Example

import { Client } from "@xhayper/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

Package Sidebar

Install

npm i @xhayper/discord-rpc

Weekly Downloads

764

Version

1.2.1

License

ISC

Unpacked Size

108 kB

Total Files

31

Last publish

Collaborators

  • xhayper