Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How can I catch specific errors, or what is the best way to handle error catching? - discord.js - Imagine ❄
d-I❄
discord.js - Imagine ❄
•
2y ago
•
5 replies
Swyftey
How can I catch specific errors, or what is the best way to handle error catching?
I
'm sorry if this is a more common question
, but I want to know how I can catch specific discord
.js errors
.
For example
, when
prompt.awaitMessageComponent({time: 15_000})
prompt.awaitMessageComponent({time: 15_000})
times out
, I want a specific message to be sent
, but what if it
's another error instead
?
discord.js - Imagine ❄
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,915
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
What's the best practice to handle errors?
d-I❄
discord.js - Imagine ❄ / djs-questions
11mo ago
How to handle HTTP errors?
d-I❄
discord.js - Imagine ❄ / djs-questions
17mo ago