From 31da6d966a3cabbe6c9753fef580ff93ec558fab Mon Sep 17 00:00:00 2001 From: supositware Date: Sat, 13 Mar 2021 18:21:33 +0100 Subject: [PATCH] better usability --- commands/owner/removeytp.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/owner/removeytp.js b/commands/owner/removeytp.js index 068ca04..c817812 100644 --- a/commands/owner/removeytp.js +++ b/commands/owner/removeytp.js @@ -14,14 +14,14 @@ class removeytpCommand extends Command { clientPermissions: ['SEND_MESSAGES'], args: [ { - id: 'filePath', - type: 'string' + id: 'messageID', + type: 'number' } ], description: { content: 'Delete a ytp', - usage: '[file path]', - examples: ['./asset/ytp/userVid/something.mp4'] + usage: '[message id]', + examples: ['some message id'] } }); } @@ -34,7 +34,7 @@ class removeytpCommand extends Command { await ytpHash.destroy({where: {hash: hash}}); } - fs.unlinkSync(args.filePath); + fs.unlinkSync(`./asset/ytp/userVid/${args.messageID}.mp4`); return message.channel.send('Successfully removed the video.'); } }