discordjs-colors

A set of colors corresponding to Discord.JS's ColorResolvable.

Usage no npm install needed!

<script type="module">
  import discordjsColors from 'https://cdn.skypack.dev/discordjs-colors';
</script>

README

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