Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Creating a custom UserError - Sapphire - Imagine a Framework
S-IaF
Sapphire - Imagine a Framework
•
3y ago
•
39 replies
rhh4x0R
Creating a custom UserError
I want to use a custom UserError to create preconditions for my subcommands
. I can
't find any documentation examples on it
.
Anyone have any suggestions so that in my custom preconditions class I can call
throw new UserError
throw new UserError
and have it go to my custom function
?
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
How do I handle this UserError?
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
UserError listener not catching all errors
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
Custom Events not Creating Listeners
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
Creating a decorator
S-IaF
Sapphire - Imagine a Framework / sapphire-support
11mo ago