Does subcommand methods have context parameter?
Hey so i have a subcommand and so for some of it's subcmds am using a single method "event" and binding them to each subcmd but is it possible to know which cmd is ran since in a normal SapphireFramework#Command inheritance the messageRun provides a context parameter which has the commandName attribute pretty helpful not sure if it's that possible with the subcmds so i can identify which subcmd is ran
Solution:Jump to solution
It does. for message ones for example: https://github.com/sapphiredev/plugins/blob/3ce98f3c9d7484f1f2dbea9cf0756b700ca445c5/packages/subcommands/src/lib/Subcommand.ts#L395-L400
1 Reply
Solution
It does. for message ones for example: https://github.com/sapphiredev/plugins/blob/3ce98f3c9d7484f1f2dbea9cf0756b700ca445c5/packages/subcommands/src/lib/Subcommand.ts#L395-L400