Grayscale


Usage


const DIG = require("dig.yd.js")
const {AttachmentBuilder} = require("discord.js")
// Avatar must come from the Member's/User's Profile Picture and formated to get the <.png> version of the Profile Picture
async function getGrayscale(avatar) {
const img = new DIG.Grayscale().getImage(avatar)

const attach = new AttachmentBuilder(img).setName("grayscale.png")
return attach
}

getGrayscale("https://panel.yeetdesigns.cc/CompanyLogos/Old_Logo.png")

Results


Last updated