derelict_extras-discord-rpc

A dynamic binding to the 🎮 Discord Rich Presence (Discord-RPC) library.


Keywords
library, binding, gamedev
License
BSL-1.0
Install
dub fetch derelict_extras-discord-rpc --version 1.0.0

Documentation

DerelictDiscordRPC

A dynamic binding to the Discord Rich Presence (Discord-RPC) library.

This is not an official Derelict binding.

Installation

You'll need a copy of the Discord-RPC dynamic library. Either download the SDK and build it yourself or download the pre-compiled binaries from their GitHub releases page. Please note that the SDK is licensed under the terms of the MIT license.

In order to use this bindings, add this package as dependency to your DUB project.

Usage

void main()
{
    // Load the Discord-RPC library.
    DerelictDiscordRPC.load();

    // Now Discord-RPC can be called.
    ... 
}

For further information check the Discord-RPC docs.

Acknowledgement

Thanks to...