Skip to content

xhayper/discord-rpc-deno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


discord_rpc_deno


deno discord license

About

discord_rpc_deno is a port of @xhayper/discord-rpc to deno.

Looking for NodeJS version? Check @xhayper/discord-rpc!

NOTE: Require --unstable --allow-read --allow-env --allow-write --allow-net!

Features

  • flatpak / snap support
  • Proper Error exception
  • Up-To-Date with Discord IPC's Command

Example

import { Client } from "https://deno.land/x/discord_rpc_deno@1.1.2/mod.ts";

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