Can someone assist me in resolving this issue? I am trying to develop a code that includes advanced commands.
Here is the code snippet:
const commandFiles = fs.readdirSync('./commands/').filter(file => file.endsWith('.js'));
for(const file of commandFiles){
const command = require('./commands/${file}');
client.command.set(command.name, command);
}