You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

discord-embed-colors

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-embed-colors

Package to quickly get colors for Discord embeds

1.0.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Discord Embed Colors

Package to quickly get colors for Discord embeds

Install

npm install discord-embed-colors

Usage

import { getColor } from 'discord-embed-colors';
import { MessageEmbed } from 'discord.js';

new MessageEmbed()
  .setTitle('My cool Embed')
  .setColor(getColor('GREEN'));

// Or convert your own custom hexadecimal code
import { hexToDecimal } from 'discord-embed-colors';

hexToDecimal('#2ecc71'); // 3066993

Keywords

discord

FAQs

Package last updated on 26 Aug 2021

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