commands should have property cooldown.
and an array containing all the commands should be exposed somehow (cause i am sure it (the array containing all the commands) is being used internally to register the commands), so that we can use that to loop over commands and check if they have cooldown & if they have , then we can create our own cooldown system in the interactionCreate event. Or you can provide a internal cooldown system (in that case, no need to expose all commands array)
Describe the feature
commands should have property
cooldown
. and an array containing all the commands should be exposed somehow (cause i am sure it (the array containing all the commands) is being used internally to register the commands), so that we can use that to loop over commands and check if they have cooldown & if they have , then we can create our own cooldown system in theinteractionCreate
event. Or you can provide a internal cooldown system (in that case, no need to expose all commands array)Examples