I'd like to create a check for all commands before they are run, and I'd like an alternative to pasting a precondition in every command file. Is there another way I can, for example, intercept the
interactionCreate
interactionCreate
event or something?
Solution
If it's a custom precondition that you wrote yourself add the
position
position
option to any value (the higher the value the higher the priority) and it'll turn into a global precondition.