1.0.2 • Published 5 years ago

nekos-discord-hooker v1.0.2

Weekly downloads
2
License
ISC
Repository
-
Last release
5 years ago

nekos-discord-hooker-version nekos-discord-hooker-downloads nekos-discord-hooker-license

nekos-discord-hooker

nekos-discord-hooker

A simple and easy way to send an embed to a discord.js webhook

to report issues and get help, join the official discord server

Useage:

let hook = require('nekos-discord-hooker');
//get the package

let webhook = new hook.webhookEmbed()
.setTitle('Title')
.setColor('#00ffff')
.setTimestamp()
.setDescription('This is an embed description')
.addField('Field 1 Title', 'Field 1 Description', true)
.addField('Field 2 Title', 'Field 2 Description', true)
//inline fields
.setFooter('Footer text', 'Footer URL');
//just like a normal discord.js embed, right?
webhook.sendTo('discord.js webhook URL');
//sends the webhook +1

The outcome should look something like this:

nekos-discord-hooker

ChangeLog:

+ spelling fix in ReadeMe.md