1.1.2 • Published 4 months ago

@xmcl/discord-rpc v1.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

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!

Features

  • flatpak / snap support
  • Low dependencies count
  • Proper error exception
  • Up-To-Date with Discord's IPC command / event list
  • Less than 100kb bundle size

Optional packages (when using WebSocket)

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

OSNormalsnapflatpak
WindowsY--
macOSY--
LinuxYYY
  • Linux is tested on Kubuntu 22.04

Credits