Closed anqueue closed 3 years ago
this is to prevent a boring, 5 second wait when you make a typo
README.MD
src/commands.ts
Moves the code to add the user to the cooldown to only add the user if the target command exists.
Before if you made a typo in the command you would have to wait 5 seconds to run the command again, this fixes it
this is to prevent a boring, 5 second wait when you make a typo
PR Checklist:
README.MD
was updated, if applicablesrc/commands.ts
was updated, if applicableDescription:
Moves the code to add the user to the cooldown to only add the user if the target command exists.
Before if you made a typo in the command you would have to wait 5 seconds to run the command again, this fixes it