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
- Requires Canvas Installation
npm i quick.hook-colors
- 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.
Need Icons?
Be sure to check the license before downloading/using an icon