discordjs / Commando

Official command framework for discord.js
Apache License 2.0
496 stars 242 forks source link

RegisterCommands only includes in my array #330

Closed enzostvs closed 4 years ago

enzostvs commented 4 years ago

Hi,

I use registerCommandsIn like this:

const modules = ["ban.js", "clear.js"]

.registerCommandsIn({
    dirname: path.join(__dirname, 'commands'),
    filter: (u) => modules.includes(u),
})

I need to charge only commands include in my array modules, but only first commands work... Do u have an another solutions for me ?

Thanks 👌

enzostvs commented 4 years ago

Resolved with inhibitor