So I have been searching for a while now but I cant find a way to disable the default commands for commando I looked at this article:How to disable defaults commands on discord.js-Commando?. But it didn't work for me here is my main.js code.
Asked
Active
Viewed 268 times
1 Answers
0
You can do it like this if you just want to remove the default commands but keep the default types and groups provided by commando.
client.registry
.registerGroups([
['administrator', 'administrator commands'],
['moderation', 'moderation commands'],
['members', 'member commands'],
['economy', 'economy'],
['misc', 'misc commands'],
])
.registerDefaultTypes()
.registerDefaultGroups()
.registerDefaultCommands({
help: false,
prefix: false,
ping: true,
eval: true,
unknownCommand: false,
commandState: false,
})
.registerCommandsIn(path.join(__dirname, 'cmds'))

binoy638
- 139
- 1
- 6
-
I want to keep some commands like ping and eval but remove others like help and unknown command response. – DA Skull May 14 '21 at 15:55
-
also I am getting a error when I try the code above this is the error:https://srcshare.io/?id=609ea3e30b940fb2aa097f49 – DA Skull May 14 '21 at 16:23
-
ok i have edited the code snippet to accept other commands – binoy638 May 15 '21 at 06:22