1.0.2 • Published 5 years ago
nekos-discord-hooker v1.0.2
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:
ChangeLog:
+ spelling fix in ReadeMe.md