I'm trying to disable default help and eval command in commando however, I get the following error:
RangeError: Argument type "string" isn't registered.
I registered discord.js-commando
as client
That's the code that the error is from
client.registry.registerDefaultCommands({
help: false,
eval: false,
});
I looked on the documents and I figured out the problem. The issue is that you were only registering the default commands, but you also needed to register the default types and the default groups. Add these few lines of code to fix the problem:
Read more about the issue here:https://discord.js.org/#/docs/commando/master/class/CommandoRegistry?scrollTo=registerDefaultCommands