ChatInputCommandError Event not firing
I'm having trouble with this code https://hst.sh/odutopaniv.typescript in that the event is not firing when a command errors and this is being logged by sapphire natively https://hst.sh/ivezicirex.apache
Solution:Jump to solution
This appears to be an issue yes but I currently do not have the time to look into it. For now I recommend splitting across files and just calling the same external function: https://github.com/sapphiredev/gemboard/tree/main/src/listeners/commands
GitHub
gemboard/src/listeners/commands at main · sapphiredev/gemboard
A private starboard bot for the Sapphire server. Contribute to sapphiredev/gemboard development by creating an account on GitHub.
3 Replies
please share the
src/commands/config.ts
fileI know the error is coming from there, I'm making it error on purpose to see if the commandError event triggers; if you were looking to fix the error
Solution
This appears to be an issue yes but I currently do not have the time to look into it. For now I recommend splitting across files and just calling the same external function: https://github.com/sapphiredev/gemboard/tree/main/src/listeners/commands
GitHub
gemboard/src/listeners/commands at main · sapphiredev/gemboard
A private starboard bot for the Sapphire server. Contribute to sapphiredev/gemboard development by creating an account on GitHub.