Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Throwing errors in commands/subcommands - Sapphire - Imagine a Framework
S-IaF
Sapphire - Imagine a Framework
โข
2y ago
โข
16 replies
Tony
Throwing errors in commands/subcommands
Just curious if there is a way to throw an error in an application command
/subcommand and have it handled by the
chatInputCommandDenied
chatInputCommandDenied
listener
, similar to how preconditions work
. Some kind of
this.error
this.error
that can be sent and handled by the listener
. Does this exist or can I write something to do that
?
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
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
IMPORTANT subcommands not throwing argument error
S-IaF
Sapphire - Imagine a Framework / sapphire-support
2y ago
Precondition not throwing errors.
S-IaF
Sapphire - Imagine a Framework / sapphire-support
2y ago
Subcommands
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
Accessing data in subcommands
S-IaF
Sapphire - Imagine a Framework / sapphire-support
2y ago