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 once7 Replies
I tried emitting the event manually, it runs. I wonder why Sapphire doesn't.
i think it will be
chatInputCommandError
check the spelling maybe
https://github.com/favware/dragonite/tree/main/src/listeners/commands/chatInputCommandsI'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 againThis
Solution
Subcommands have their own enum and own events
i see it was a sub command
thanks!