Hookcord
A user-friendly, sleek and fast client used to create and send Discord Webhooks.
Features
- Object-oriented
- Complete coverage of the Discord Webhook API
- Lightweight but powerful
API Documentation available at maxrumsey.xyz/hookcord/
Usage
Installation
$ npm i hookcord
Initialisation
var hookcord = ;var Hook =
Or:
var hookcord = ;var Hook =
Messages
var hookcord = ;var Hook =
More information is available at the documentation.
Embeds
var hookcord = ;var Hook =
Embed documentation is available at Discord's Documentation. More information is available at the Hookcord documentation.
Ratelimits
By default, Hookcord will throw an error if it encounters a ratelimit. You can override this by setting a handler function like this:
var hookcord = ;var Hook =
It provides the remaining requests allowed (0), the total requests permitted (usually 5) and the time until the Ratelimit resets.
More information is available at the Hookcord documentation.
Parsing Discord.JS Embeds
Hookcord has the ability to parse embeds created via Discord.JS's RichEmbed. These parsed embeds can be sent via Hookcord as a Webhook.
var hookcord = ;var Hook =
If you attempt to parse a file, the file will be removed and the incident will be logged to console.
Contributing
If you wish to contribute, feel free to open a pull request on the GitHub Repository! Also, make sure to join our Discord Server!