Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including quick.hook with all npm packages installed. Try it out:

var quickHook = require("quick.hook")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

quick.hook v1.5.1

Easily create Discord Webhooks & create fallbacks using Discord.js

Quick.hook

Discord Server YouTube Channel

Support Discord: https://discord.gg/plexidev


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


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

Examples

ImageCode

*Icons by Nick Roach


Need Icons?

Be sure to check the license before downloading/using an icon

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free