Search
Star
Feedback
Setup for Free
Ā© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Catch all chat input command errors listener - Sapphire - Imagine a Framework
S-IaF
Sapphire - Imagine a Framework
ā¢
3y ago
ā¢
3 replies
MrSquaare
Catch all chat input command errors listener
Hello
! I tried using the
Events.ChatInputCommandError
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
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
Sapphire Framework
Module: subcommands/src | Sapphire
Namespaces
Jump to solution
Sapphire - Imagine a Framework
Join
Sapphire is a next-gen object-oriented Discord.js bot framework.
2,261
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Chat input command IDs
S-IaF
Sapphire - Imagine a Framework / sapphire-support
2y ago
UserError listener not catching all errors
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
message and chat input command with arguments
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago