Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

analogjupiter/discord-rpc-d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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