1.2.3 • Published 6 years ago

discordjs-colors v1.2.3

Weekly downloads
6
License
Apache 2.0
Repository
github
Last release
6 years ago

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