discord_rpc
Discord RPC/Rich Presence client
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install discord_rpc
choosenim install discord_rpc
git clone https://github.com/SolitudeSF/discord_rpc
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| discord_rpc | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/SolitudeSF/discord_rpc |
|---|---|
| Homepage | https://github.com/SolitudeSF/discord_rpc |
| Registry Source | nimble_official |
README
discord_rpc
Client library for synchronous part of Discord RPC, which includes Rich Presence.
Installation
nimble install discord_rpc
Example settings Rich Presence/Activity
let
applicationId = WHATEVER
discord = newDiscordRPC(applicationId)
discard discord.connect
discord.setActivity Activity(
details: "Epic Application",
state: "Doing nothing",
assets: some ActivityAssets(
largeImage: "icon-name",
largeText: "yep, thats it"
)
)
Example using other RPC facilities
Needs to be compiled with -d:ssl.
let
id = WHATEVER
secret = VERY_CONFIDENTIAL
scopes = [oasIdentify, oasRpc] # You need at least these two to do anything
discord = newDiscordRPC(id)
_ = discord.connect
authorizationCode = d.authorize scopes
(authenticationToken, _) =
getOAuth2Token(authorizationCode, discord.client, secret, scopes)
_ = discord.authenticate token
# Now we're set to do whatever
guilds = discord.getGuilds
voiceSettings = discord.getVoiceSettings
_ = d.selectTextChannel some channelId