quick.hook-colors

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i quick.hook-colors

Weekly Downloads

3

Version

1.1.0

License

ISC

Unpacked Size

15.7 kB

Total Files

6

Last publish

Collaborators

  • truexpixels