How to create errors like this

I'm used parse function but It doesn't look like in the photo.
9 Replies
Favna
Favna2y ago
it's uh something with using inspect from node's util class. Not entirely sure what the setup for it is.
Erffy
ErffyOP2y ago
thanks! I have question. How to check data is object with shapeshift?
Favna
Favna2y ago
GitHub
GitHub - sapphiredev/shapeshift: Blazing fast input validation and ...
Blazing fast input validation and transformation ⚡ - GitHub - sapphiredev/shapeshift: Blazing fast input validation and transformation ⚡
Erffy
ErffyOP2y ago
I tried s.object(...).parse(...) but it gives an error directly instead of checking.
Favna
Favna2y ago
wdym
Spinel
Spinel2y ago
When asking for help, make sure to provide as much detail as possible. What have you tried so far? Do you have stacktraces that you can show us? What are you trying to achieve? Try to answer these questions and others, so we do not have to ask for them afterwards.
❯ For a good guide on how to ask questions, see the instructions that StackOverflow gives. You should try to always follow these guidelines. ❯ For an excellent video that shows how not to ask technical questions is this, watch this YouTube video by LiveOverflow. ❯ Asking technical questions (Clarkson)How to ask questions the smart way (Raymond)
Erffy
ErffyOP2y ago
For example, if it is an object, I will return true, but I can't.
Favna
Favna2y ago
if you just need to know if something is an object use isObject from @sapphire/utilities
Erffy
ErffyOP2y ago
thanks
Want results from more Discord servers?
Add your server