Blur


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
// level must be a number for the level of blur you want
async function getBlur(avatar, level) {
const img = new DIG.Blur().getImage(avatar, level)

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

getBlur("https://panel.yeetdesigns.cc/CompanyLogos/Old_Logo.png", 1)

Results


Last updated