hxrpc

Haxe interface library for wrapping and interacting the Discord RPC api
https://github.com/melodiiCam2B/hxrpc/

To install, run:

haxelib install hxrpc 1.0.1 

See using Haxelib in Haxelib documentation for more information.

README.md

hxrpc


a Haxe Library for interacting with the Discord API! note that this library is windows exclusive as I don't have other os' to test on.


Code Clearity

import hxrpc.DiscordRpc;
/** for reference, this is not how to actually use it. just what funcions do and what variables they hold  */
class Main {
	static function main():Void {
        /**
         * there's no need to create a 'new' instance
         * everything is handled on it's own
         */

        DiscordRpc.setup('appid', canLog (true/false));


        /**
         * the main function most people will be using
         */
        DiscordRpc.changePresence('status string', 'detail string', 'small icon key', 'small icon string', 'big icon key', 'big icon string', game end time);
    }
}

Contributors
Melodii2b
Version
1.0.1
Published
8 weeks ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub

⌂