1.0.5 • Published 4 years ago

danhooks v1.0.5

Weekly downloads
7
License
MIT
Repository
-
Last release
4 years ago

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
1.0.5

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago