RaidAndFade / Haxicord

The most popular discord API Haxe library (because no others are good enough to be called a library)

Home Page:https://raidandfade.github.io/Haxicord/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Haxicord

Haxicord

Haxicord is a Discord API wrapper for Haxe. Slash Commands are NOT supported.

Haxelib Discord

Installation

To install the library in your project, use the haxelib package manager:

haxelib install haxicord

Supported Targets

  • Neko
  • CPP
  • C#
  • NodeJS

Any other target is not supported, and may not work.

Usage

Normal humans can click here for a proper example of some base features

Those of a lower level of dedication can use the example below: (Takes advantage of the command api)

package;

import com.raidandfade.haxicord.commands.CommandBot;
import com.raidandfade.haxicord.types.Message;

class Main extends CommandBot {

    static function main() {
        new Main("<token>",Main,"-"); //Create an instance of Commandbot with the prefix `-`
    }

    @Command
    function ping(message:Message){
        message.react(""); //React to the message with "✅"
        message.reply({content:"Pong!"}); //Send "Pong!" in the same channel
    }
}

Documentation

You can find the documentation here

Community

Join the Haxicord Discord for more help & to meet others using the library (as well as the dev) Discord

About

The most popular discord API Haxe library (because no others are good enough to be called a library)

https://raidandfade.github.io/Haxicord/

License:GNU General Public License v3.0


Languages

Language:Haxe 100.0%