discordjs-colors
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

Discord.JS Colors

List of the colors used in Discord.JS's Type Definition, ColorResolvable.

Here's how to do this:

Install the package.

npm install discordjs-colors

Then do something like this.

const Discord = require("discord.js");
const client = new Discord.Client();
const colors = require("discordjs-colors");
 
client.on("message", (message) => {
    let embed = new Discord.RichEmbed()
    .setTitle("Red color")
    .setColor(colors.red());
 
    message.channel.send(embed);
})

Or this:

const chalk = require("chalk");
const colors = require("discordjs-colors");
 
console.log(chalk.hex(colors.red())("Red text"))

Or you can run it:

discordjs-colors

You can find the color list here.

Github

NPM Package

Package Sidebar

Install

npm i discordjs-colors

Weekly Downloads

3

Version

1.2.3

License

Apache 2.0

Unpacked Size

23.6 kB

Total Files

12

Last publish

Collaborators

  • hiimjustin000