fast-hooks
v1.0.0
Published
Easily create Discord Webhooks & create fallbacks using Discord.js v13
Maintainers
Readme
Fast-Hook
Support Discord: soon (Dar3k#1121)
This package creates an easy way to send webhooks, as well as providing fallbacks if the client does not have the proper permissions.
If the client does not have the permission Manage Webhooks, it will send a normal message instead, causing no issues and working seamlessly
const send = require('fast-hook');Documentation
Parameter | Type | Optional | Default | Description
--- |---------------|----------|----------------| ---
options | object | true | none | The options for the webhook
options.channel | textChannel | false | none | Channel to send webhook
options.message | message | true | none | Message to send with webhook
options.name | string | true | Server Invite | The title of the webhook
options.icon | iconURL | true | Webhook Icon | The icon of the webhook
options.mentions | boolean | true | True | If false webhook will don't ping anyone.
options.attachments | object | true | null | Object with attachments
options.components | object | true | null | Object with components
options.embed | object | true | null | Object with embeds
Examples

const send = require('fast-hook');
send({
channel: message.channel,
message: 'Current Settings...',
name: 'Settings',
icon: 'https://i.imgur.com/X9eAmHm.png',
mentions: false,
})
const Discord = require('discord.js');
const send = require('fast-hook');
const embed = new Discord.MessageEmbed()
.setColor("#77C2AE")
.setTitle(`California`)
.setDescription(`**By *Clayton James***`)
.setFooter(`Just a normal embed!`);
send({
channel: message.channel,
embeds: [embed],
name: 'Now Playing',
icon: 'https://i.imgur.com/44YTwve.png',
mentions: false
})© DomeQ#0001 2018 || Edited by Dar3k#1121
