Add snowflake to att

This commit is contained in:
Christopher Cookman 2025-06-21 06:09:24 -06:00
parent dd003a333a
commit c6663e49ee

View file

@ -12,6 +12,7 @@ const execute = async (interaction, db, client) => {
const filename = `badActors-${pad(now.getMonth() + 1)}-${pad(now.getDate())}-${now.getFullYear()}-utc${pad(now.getUTCHours())}-${pad(now.getUTCMinutes())}.json`;
let attachments = [
{
id: Discord.SnowflakeUtil.generate().toString(),
name: filename,
attachment: Buffer.from(JSON.stringify(row, null, 2), 'utf8')
}