Running commands manually
Is there a way to run commands manually, without a message/interaction making Sapphire do it?
Solution:Jump to solution
Example
``ts
// or, if in a command class, just use
this.store`
const commands = container.stores.get('commands');...7 Replies
Get it from the store and call the appropriate run command with the appropriate arguments
Solution
Example
I hoped there is a better way
What better way was you hoping for?
I mean, you can always extend sapphire / DJS classes for your own preferred methods 🤷
Being able to access the way sapphire runs them (going through preconditions etc)
i mean you ccan do that too, you just need to look at the sapphire code and copy it
https://github.com/sapphiredev/framework/blob/main/src/listeners/application-commands/chat-input/CorePreChatInputCommandRun.ts
Oooh that's what I was looking for, thank you
I need the messageRun, but it's probably the exact same thing