quick.hook-colors

Easily create Discord Webhooks & create fallbacks using Discord.js

Usage no npm install needed!

<script type="module">
  import quickHookColors from 'https://cdn.skypack.dev/quick.hook-colors';
</script>

README

Discord Server YouTube Channel

Support/Community Discord: https://discord.gg/8nrEqvP


This package is a variant of Quick.hook, it adds auto-color for embeds, by setting it to the dominant color of the icon.

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

Installation

  1. Requires Canvas Installation
  2. npm i quick.hook-colors
  3. Go into /node_modules/color-thief/js/color-thief.js, change line 49 to: img.src = image

Documentation

Parameter Type Optional Default Description
channel textChannel false none The channel to send the webhook to
message string or embed false none The message or embed to send
options object true none The options for the webhook
options.name string true Server Invite The title of the webhook
options.icon iconURL true Webhook Icon The icon of the webhook
options.color boolean true false Enabling auto-color for embeds

Auto-Color Examples

  • Notice how embed.setColor() is never defined.
Image Code
*Icons by Nick Roach

Need Icons?

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