https://github.com/harmonyland/discord_rpc
Discord RPC module for Deno.
https://github.com/harmonyland/discord_rpc
deno discord harmony rpc typescript
Last synced: about 1 month ago
JSON representation
Discord RPC module for Deno.
- Host: GitHub
- URL: https://github.com/harmonyland/discord_rpc
- Owner: harmonyland
- License: mit
- Created: 2021-07-26T06:40:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-09T16:32:31.000Z (7 months ago)
- Last Synced: 2025-04-14T03:13:12.837Z (about 1 month ago)
- Topics: deno, discord, harmony, rpc, typescript
- Language: TypeScript
- Homepage: https://deno.land/x/discord_rpc
- Size: 35.2 KB
- Stars: 16
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://doc.deno.land/https://deno.land/x/discord_rpc/mod.ts).Note that this module requires `--unstable` flag on Windows since Named Pipes
support is added using FFI API, which is unstable.## Example
```typescript
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!
- Please format code with `deno fmt`
- Run `deno lint` before submitting PR## License
MIT licensed. Check [LICENSE](./LICENSE) for more info.
Copyright 2021 © littledivy
Copyright 2022-2023 © Harmony Land