discord_ipc_cpp 1.0.0
C++ library for interfacing with Discord IPC socket.
|
C++ library for interfacing with Discord IPC socket. This library was initial made for the parent project apple-music-rpc-cpp, and thus may not be contain full compatibility with Discord IPC protocols. Because of the criteria for the parent project, this library is entirely self-contained, and does not include any external libraries. Feel free to create a new issue or submit pull requests if you encounter any issues.
Read the full documentation here: https://plduanm.com/projects/documentation/discord_ipc_cpp
Requirements:
Clone this repository as a submodule under src/:
And add the following into your CMakeLists.txt:
All of the code below will incorporate the following metacode:
Create a Discord IPC client and connect to it:
Construct a rich presence:
Set the user's rich presence:
Clear the user's rich presence:
Close the IPC connection: