Blink


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
// delay must be in ms like this [Example: for 1 second you put 1000]
async function getBlink(avatar, avatar2, delay) {
const img = new DIG.Blink().getImage(delay, avatar, avatar2)

const attach = new AttachmentBuilder(img).setName("blink.gif")
return attach
}

getBlink("https://panel.yeetdesigns.cc/CompanyLogos/Old_Logo.png", "https://panel.yeetdesigns.cc/CompanyLogos/Old_Logo.png", 5000)

Results


Last updated