Precondition Command

In a global precondition, is it possible to get the command object for the command the precondition is being run on?
Solution:
The command is the second parameter of the run function. Example: https://github.com/sapphiredev/framework/blob/main/src/preconditions/Enabled.ts
GitHub
framework/src/preconditions/Enabled.ts at main · sapphiredev/framew...
Discord bot framework built on top of discord.js for advanced and amazing bots. - sapphiredev/framework
Jump to solution
2 Replies
Solution
Lioness100
Lioness10010mo ago
The command is the second parameter of the run function. Example: https://github.com/sapphiredev/framework/blob/main/src/preconditions/Enabled.ts
GitHub
framework/src/preconditions/Enabled.ts at main · sapphiredev/framew...
Discord bot framework built on top of discord.js for advanced and amazing bots. - sapphiredev/framework
Hyper
HyperOP10mo ago
Oh bruhhh how did I not notice that lol Alright thank you! @Ararou ^ lmao
Want results from more Discord servers?
Add your server