Command Error

There seems to be a problem with sapphire not running my ChatInputCommandError listener. I tried debugging console.log({ error, context }) inside the run method but it doesn't log. :check: My pieces directory is in the right place :check: The listener is not configured to run only once
Solution:
Subcommands have their own enum and own events
Jump to solution
7 Replies
ian
ian2y ago
I tried emitting the event manually, it runs. I wonder why Sapphire doesn't.
Krish
Krish2y ago
i think it will be chatInputCommandError check the spelling maybe https://github.com/favware/dragonite/tree/main/src/listeners/commands/chatInputCommands
ian
ian2y ago
I'm using the Events constant (or enum i suppose) directly from the lib, so i don't think spelling's the problem. ig i extended a Subcommand, which has it's own and similar set of error listeners it runs before i deleted it, i'll try creating the listener again
Favna
Favna2y ago
This
Solution
Favna
Favna2y ago
Subcommands have their own enum and own events
Krish
Krish2y ago
i see it was a sub command
ian
ian2y ago
thanks!
Want results from more Discord servers?
Add your server