Precondition Command
In a global precondition, is it possible to get the command object for the command the precondition is being run on?
Solution:Jump to 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
2 Replies
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
Oh bruhhh how did I not notice that lol
Alright thank you!
@Ararou ^ lmao