Change filename format?
This commit is contained in:
parent
58b2ee9f9c
commit
f79185dc85
|
@ -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
BIN
newcfg.tar.gz
Normal file
Binary file not shown.
Loading…
Reference in a new issue