Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RaidAndFade/Haxicord
The most popular discord API Haxe library (because no others are good enough to be called a library)
https://github.com/RaidAndFade/Haxicord
discord discord-api discord-haxe discord-lib discord-library haxe haxe-discord haxe-js haxe-library haxe-neko haxelib library neko
Last synced: about 2 months ago
JSON representation
The most popular discord API Haxe library (because no others are good enough to be called a library)
- Host: GitHub
- URL: https://github.com/RaidAndFade/Haxicord
- Owner: RaidAndFade
- License: gpl-3.0
- Created: 2017-07-04T00:38:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-10-06T20:11:10.000Z (about 2 years ago)
- Last Synced: 2024-07-31T20:42:14.661Z (4 months ago)
- Topics: discord, discord-api, discord-haxe, discord-lib, discord-library, haxe, haxe-discord, haxe-js, haxe-library, haxe-neko, haxelib, library, neko
- Language: Haxe
- Homepage: https://raidandfade.github.io/Haxicord/
- Size: 1020 KB
- Stars: 57
- Watchers: 7
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- discord-api-libs - Haxicord - The most popular discord API Haxe library (because no others are good enough to be called a library) (Libraries / Haxe)
- awesome-discord - Haxicord
README
Haxicord
Haxicord is a Discord API wrapper for Haxe. Slash Commands are NOT supported.
[![Haxelib](https://img.shields.io/badge/dynamic/json.svg?label=haxelib&colorB=00bb00&query=version&uri=https%3A%2F%2Fraw.githubusercontent.com%2FRaidAndFade%2FHaxicord%2Fmaster%2Fhaxelib.json)](https://lib.haxe.org/p/Haxicord) [![Discord](https://discordapp.com/api/guilds/602009441281507349/embed.png?style=shield)](https://discord.gg/Hfq2djq)
## Installation
To install the library in your project, use the haxelib package manager:`haxelib install haxicord`
## Supported Targets
- [x] Neko
- [x] CPP
- [x] C#
- [x] NodeJSAny other target is not supported, and may not work.
## Usage
[Normal humans can click here for a proper example of some base features](https://github.com/RaidAndFade/Haxicord/blob/master/src/com/raidandfade/haxicord/test/Test.hx)Those of a lower level of dedication can use the example below: (Takes advantage of the command api)
```hx
package;import com.raidandfade.haxicord.commands.CommandBot;
import com.raidandfade.haxicord.types.Message;class Main extends CommandBot {
static function main() {
new Main("",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](https://raidandfade.github.io/Haxicord/)## Community
Join the Haxicord Discord for more help & to meet others using the library (as well as the dev)
[![Discord](https://discordapp.com/api/guilds/602009441281507349/embed.png?style=banner2)](https://discord.gg/Hfq2djq)