danhooks
v1.0.5
Published
DanHooks is a simple webhook builder for Discord, based off of the Discord.js module.
Downloads
11
Readme
DanHooks
DanHooks is a simple webhook builder for Discord, based off of the Discord.js module.
Installation
Run npm install danhooks --save
to install. Or, yarn add danhooks
.
If I got that
Yarn
command wrong, please forgive me. I personally do not use Yarn.
Example
const DanHooks = require("danhooks"); // Require DanHooks.
const service = new DanHooks(""); // String must contain your webhook link.
service.setTitle(""); // String should include a title.
service.setDescription(""); // String should include a description.
service.setAuthor("", "", ""); // String must be in the order of `name`, `image`, `link`.
service.setColor(""); // String must be hexadecimal.
service.setFooter("", ""); // String must be in the order of `name`, `image`.
service.setThumbnail(""); // String must be an image link.
service.setImage(""); // String must be an image link.
service.addField("", ""); // String must be in the order of `name`, `content`.
service.addBlankField(); // Must be a boolean: `true`, `false`.
service.setTimestamp(); // Leave blank or add a timestamp integer.
service.setURL(""); // String must include a link.
service.send(); // Leave blank, and the embed will send.
Updating
DanHooks is updated everyday with bug fixes and performance updates.
Contributors
RTask
- Core Developer