Add snowflake to att
This commit is contained in:
parent
dd003a333a
commit
c6663e49ee
|
@ -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')
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue