discordjs-colors
v1.2.3
Published
A set of colors corresponding to Discord.JS's ColorResolvable.
Downloads
8
Maintainers
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.