Discord API for Haxe with neko (it should also work with python, java, macro, cpp, lua and php but these are untested)
##WARNING This library is very early in development, expect bugs and missing functionality.
async
a very simplistic concurrency packagehttp
implementation of https://github.com/yupswing/akifox-asynchttp using theasync
packagenekows
websocket library using theasync
packageapi
discord api packageutils
miscellaneous helper classes
class BotExample extends APIEventListener
{
override public function onMessage(message:Message):Void
{
if (message.content == "!ping") {
client.sendMessage(message.channel.id, "pong!").send();
}
}
public static function main()
{
var client:Client = new Client();
client.addListener(new BotExample(client));
client.run("token");
}
}
- Add equivelant methods in Client to all the methods in APIHTTP
- Create the
Embed
data class - Properly create the
Permissions
andColour
data classes - Properly test the dispatch events and data class creation
- Properly test the
APIHTTP.hx
endpoints - Document all of the packages, with examples and test cases
- Create a command framework