Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quick.hook-colors

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quick.hook-colors

Easily create Discord Webhooks & create fallbacks using Discord.js

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by125%
Maintainers
1
Weekly downloads
 
Created
Source

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

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
*Icons by Nick Roach

Need Icons?

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

Keywords

FAQs

Package last updated on 26 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc