https://github.com/xhayper/discord-rpc-deno
port of @xhayper/discord-rpc to deno
https://github.com/xhayper/discord-rpc-deno
deno discord discord-ipc discord-rpc ipc rich-presence rpc typescript
Last synced: 2 months ago
JSON representation
port of @xhayper/discord-rpc to deno
- Host: GitHub
- URL: https://github.com/xhayper/discord-rpc-deno
- Owner: xhayper
- License: isc
- Created: 2022-08-17T16:35:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-24T23:11:38.000Z (10 months ago)
- Last Synced: 2024-09-17T16:10:52.548Z (9 months ago)
- Topics: deno, discord, discord-ipc, discord-rpc, ipc, rich-presence, rpc, typescript
- Language: TypeScript
- Homepage:
- Size: 147 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## About
`discord_rpc_deno` is a port of
[@xhayper/discord-rpc](https://github.com/xhayper/discord-rpc) to deno.Looking for NodeJS version? Check
[@xhayper/discord-rpc](https://github.com/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
```ts
import { Client } from "https://deno.land/x/[email protected]/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
- [discordjs](https://github.com/discordjs): Making
[discordjs/RPC](https://github.com/discordjs/RPC)
- [JakeMakesStuff](https://github.com/JakeMakesStuff):
[snap support](https://github.com/discordjs/RPC/pull/152)
- [Snazzah](https://github.com/Snazzah):
[snap + flatpak support](https://github.com/Snazzah/SublimeDiscordRP/blob/c13e60cdbc5de8147881bb232f2339722c2b46b4/discord_ipc/__init__.py#L208)
- [leonardssh](https://github.com/leonardssh): Making
[coc-discord-rpc](https://github.com/leonardssh/coc-discord-rpc) which
inspried me to make this package due to how old
[discordjs/RPC](https://github.com/discordjs/RPC) is