Color
Usage
const DIG = require("dig.yd.js")
const {AttachmentBuilder} = require("discord.js")
// color is a hex code for a color like the hex code #EFBF04 is for the color gold
async function getColor(colorHex) {
const img = new DIG.Color().getImage(colorHex)
const attach = new AttachmentBuilder(img).setName("color.png")
return attach
}
getColor("#EFBF04")import DIG from "dig.yd.js"
import {AttachmentBuilder} from "discord.js"
// color is a hex code for a color like the hex code #EFBF04 is for the color gold
async function getColor(colorHex) {
const img = new DIG.Monalisa().getImage(colorHex)
const attach = new AttachmentBuilder(img).setName("color.png")
return attach
}
getColor("#EFBF04")Results

Last updated