Optional Discord Rich Presence through the local desktop client's IPC endpoint.
More...
#include <discordpresence.h>
Optional Discord Rich Presence through the local desktop client's IPC endpoint.
◆ DiscordPresence() [1/2]
Start asynchronous IPC when support is compiled in and an application ID is supplied.
Missing clients are retried without blocking game processing. Empty or invalid IDs disable communication. No remote network connection or Discord registration is performed.
- Parameters
-
| applicationId | Nonzero unsigned 64-bit decimal Discord application ID without leading zeros, or empty to disable presence. |
◆ ~DiscordPresence()
| coastline::DiscordPresence::~DiscordPresence |
( |
| ) |
|
Stop the worker and close IPC before returning.
◆ DiscordPresence() [2/2]
| coastline::DiscordPresence::DiscordPresence |
( |
const DiscordPresence & | | ) |
|
|
delete |
Prevent duplicate ownership of an IPC session.
◆ operator=()
Prevent replacement of an active IPC session.
◆ Update()
Publish the latest activity without waiting for Discord.
Repeated identical updates are ignored; pending changes are coalesced and rate-limited.
- Parameters
-
| details | Activity description in UTF-8, limited to 128 bytes without splitting codepoints. |
| state | Additional activity state in UTF-8, limited to 128 bytes, or empty. |
The documentation for this class was generated from the following file: