1.1.0 • Published 6 years ago

quick.hook-colors v1.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

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

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.colorbooleantruefalseEnabling auto-color for embeds

Auto-Color Examples

  • Notice how embed.setColor() is never defined.
ImageCode
npm.ionpm.io
npm.ionpm.io
npm.ionpm.io

*Icons by Nick Roach


Need Icons?

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

1.1.0

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago