analogjupiter / discord-rpc-d

A static binding to 🎮 Discord RPC

Home Page:https://code.dlang.org/packages/discord-rpc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord RPC D

A static binding to 🎮 Discord RPC.

Please note that Discord RPC is licensed under the terms of the MIT license.

Usage

First, get a copy of Discord RPC.

In order to link against libdiscord-rpc, add it to your dub.json.

"libs": [ "discord-rpc" ]

Now you can use Discord RPC in your code:

import discord.rpc;

void main()
{
    DiscordEventHandlers handlers;
    // ...

    Discord_Initialize(APPLICATION_ID, &handlers, 1, null);
}

Links

About

A static binding to 🎮 Discord RPC

https://code.dlang.org/packages/discord-rpc

License:Boost Software License 1.0


Languages

Language:D 100.0%