Default preconditions

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 event or something?
Solution:
If it's a custom precondition that you wrote yourself add the position option to any value (the higher the value the higher the priority) and it'll turn into a global precondition.
Jump to solution
3 Replies
Solution
Favna
Favna2y ago
If it's a custom precondition that you wrote yourself add the position option to any value (the higher the value the higher the priority) and it'll turn into a global precondition.
Favna
Favna2y ago
Sapphire Framework
Global preconditions | Sapphire
Sometimes you want a precondition that automatically runs for every command, without having to add it to each command.
tk ⚝
tk ⚝OP2y ago
Thanks
Want results from more Discord servers?
Add your server