Change filename format?

This commit is contained in:
Christopher Cookman 2025-06-17 16:39:22 -06:00
parent 58b2ee9f9c
commit f79185dc85
2 changed files with 1 additions and 1 deletions

View file

@ -22,7 +22,7 @@ const execute = async (interaction, db, client) => {
const attachment = interaction.options.getAttachment(`attachment${i}`);
if (attachment) {
const url = attachment.url;
const filename = `${Date.now()}_${attachment.name}`;
const filename = `${user.id}-${i}`;
const filepath = path.join(__dirname, '../../storage', filename);
// Await the download before continuing

BIN
newcfg.tar.gz Normal file

Binary file not shown.