Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xhayper/discord-rpc
a fork of discordjs/RPC
https://github.com/xhayper/discord-rpc
discord discord-ipc discord-rpc ipc rich-presence rpc typescript
Last synced: 4 days ago
JSON representation
a fork of discordjs/RPC
- Host: GitHub
- URL: https://github.com/xhayper/discord-rpc
- Owner: xhayper
- License: isc
- Created: 2022-07-28T06:33:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-19T22:48:58.000Z (8 days ago)
- Last Synced: 2024-12-21T17:06:08.990Z (6 days ago)
- Topics: discord, discord-ipc, discord-rpc, ipc, rich-presence, rpc, typescript
- Language: TypeScript
- Homepage:
- Size: 2.19 MB
- Stars: 42
- Watchers: 1
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## About
`@xhayper/discord-rpc` is a fork of [discordjs/RPC](https://github.com/discordjs/RPC) with type safety and some additional features.
## Example
```ts
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
- [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