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?12 Replies
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
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
also i can confirm that the command is being ran
but its not doing anything
@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.
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
and now it counts up
yeah
when i remove the cooldown on the subcommands
it fixes it
Can you make a small repro repo?
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.
you can ignore
lib/utils
and lib/types
bump this up for myself