New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

danhooks

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

danhooks

DanHooks is a simple webhook builder for Discord, based off of the Discord.js module.

latest
npmnpm
Version
1.0.5
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 12 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts