harmonyland / discord_rpc

Discord RPC module for Deno.
https://deno.land/x/discord_rpc
MIT License
15 stars 3 forks source link
deno discord harmony rpc typescript

discord_rpc

Discord RPC module for Deno.

Usage

You can import the module from https://deno.land/x/discord_rpc/mod.ts (don't forget to add a version!).

You can also check the documentaton here.

Note that this module requires --unstable flag on Windows since Named Pipes support is added using FFI API, which is unstable.

Example

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

const client = new Client({
  id: "869104832227733514",
});

await client.connect();
console.log(`Connected! User: ${client.userTag}`);

await client.setActivity({
  details: "Deno 🦕",
  state: "Testing...",
});

Contributing

Contributions are welcome!

License

MIT licensed. Check LICENSE for more info.

Copyright 2021 © littledivy

Copyright 2022-2023 © Harmony Land