sapphireplugin-subcommands can't catch error?
Hello! I am using this subcommands plugin and i cannot log error in the console. no idea what is going on
Solution:Jump to solution
Not sure what you mean. Need more info. But it should be noted that subcommands have their own error listeners as documented here: https://www.sapphirejs.dev/docs/Documentation/api-plugins/modules/subcommands_src#subcommandpluginevents
3 Replies
Solution
Not sure what you mean. Need more info. But it should be noted that subcommands have their own error listeners as documented here: https://www.sapphirejs.dev/docs/Documentation/api-plugins/modules/subcommands_src#subcommandpluginevents
Any invalid code doesnt throw any error when i use it
Example Code:
^ this code doesnt throw any error
Then don't write invalid code?
Anyway yes it doesn't throw
It emits an event on the listener as mentioned
https://github.com/sapphiredev/plugins/blob/a61871d4336a80049ff00c6b98526e512c6813de/packages/subcommands/src/lib/Subcommand.ts#L280