This is my code:
const { EmbedBuilder } = require("discord.js");
module.exports = {
name: 'savedplaylist',
description: "Get the songs in the saved playlist",
showHelp: false,
execute({ client, inter }) {
fs.readdir('./savedplaylist', (err, files) => {
if (err) console.error(err);
else {
const fileList = files
.map((file, index) => `${index + 1}. ${file.split('.').slice(0, -1).join('.')}`)
.join('\n');
const embed = new EmbedBuilder()
.setColor('#ff0000')
.setTitle('List of the saved playlist by the owner')
.setDescription(`\n${fileList}`)
inter.reply({ embeds: [embed] });
}
});
},
};```
i want to add a subcommand named: remove, that has other fonctionaly than the main command