Subcommands Refusing to work for anyone but me?

I have a command called lm and card which is in a leveling module, and these are the only subcommands in the module and they dont seem to work for anyone else but me. They were working a few days ago, was there a change that checks for bot owner permissions?
No description
No description
No description
12 Replies
Favna
Favna11mo ago
Validate they are not running against those global preconditions of yours. Also implement a messageCommandDenied listener and check if it logs anything there. and keep in mind that your global cooldown config means that every user can use only 1 command every 10 seconds, regardless of which command they use
Oreo ™
Oreo ™OP11mo ago
well people can use other commands, only the subcommands are being weird. And the only global preconditions are Blacklist and Registered and they are working fine its fine bc its a private bot
Oreo ™
Oreo ™OP11mo ago
also i can confirm that the command is being ran
No description
Oreo ™
Oreo ™OP11mo ago
but its not doing anything
Oreo ™
Oreo ™OP11mo ago
@Favna this may be a bug because idk why it would do this. I added a subcommand denied listener and made it send the error.
No description
Oreo ™
Oreo ™OP11mo ago
Even though no one ran the command before it still says that and they didnt use a command before it seems subcommands cooldowns arent cleared i set the cooldown to 1s in the subcommand
Oreo ™
Oreo ™OP11mo ago
and now it counts up
No description
Oreo ™
Oreo ™OP11mo ago
yeah when i remove the cooldown on the subcommands it fixes it
Favna
Favna11mo ago
Can you make a small repro repo?
Oreo ™
Oreo ™OP11mo ago
https://github.com/TheOreoTM/subcommand-error-repro i just deleted the other files from my main bot, hope thats okay
GitHub
GitHub - TheOreoTM/subcommand-error-repro
Contribute to TheOreoTM/subcommand-error-repro development by creating an account on GitHub.
Oreo ™
Oreo ™OP11mo ago
you can ignore lib/utils and lib/types
Favna
Favna11mo ago
bump this up for myself
Want results from more Discord servers?
Add your server