1.1.6 • Published 3 years ago

fast-webhook v1.1.6

Weekly downloads
15
License
MIT
Repository
github
Last release
3 years ago

Fast webhook

Support Discord: https://discord.com/invite/7BeDqdRFtE


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-webhook');

Documentation

ParameterTypeOptionalDefaultDescription
channeltextChannelfalsenoneThe channel to send the webhook to
messagestring or embedfalsenoneThe message or embed to send
optionsobjecttruenoneThe options for the webhook
options.namestringtrueServer InviteThe title of the webhook
options.iconiconURLtrueWebhook IconThe icon of the webhook
options.mentionsbooleantrueTrueIf false webhook will don't ping anyone.

Examples

npm.io

const send = require('fast-webhook');


send(message.channel, 'Current Settings...', {
    name: 'Settings',
    icon: 'https://i.imgur.com/X9eAmHm.png'
})

npm.io

const send = require('fast-webhook');
const { MessageEmbed } = require('discord.js');

const embed = new MessageEmbed()
    .setColor("#77C2AE")
    .setTitle(`California`)
    .setDescription(`**By *Clayton James***`)
    .setFooter(`Just a normal embed!`);

send(message.channel, embed, {
    name: 'Now Playing',
    icon: 'https://i.imgur.com/44YTwve.png'
})

© TrueXPixels 2018 || Edited by DomeQ#0001

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago