Sapphire - Imagine a framework
Sapphire - Imagine a framework

sapphire-support

Root Question Message

MrSquaare
MrSquaare3/7/2023
Catch all chat input command errors listener

Hello ! I tried using the Events.ChatInputCommandError listener to catch any errors thrown by the chat input command, but it never seems to catch any errors.
Am I missing something?

Solution Message

MrSquaare
MrSquaare3/7/2023
Because the error is thrown in a subcommand and it is not the same event...
See https://www.sapphirejs.dev/docs/Documentation/api-plugins/modules/subcommands_src#subcommandpluginevents
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy