Invert


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 getInvert(avatar) {
const img = new DIG.Invert().getImage(avatar)

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

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

Results


Last updated