Better way of displaying an error response to the user for components? (this.none)
Hi, I was wondering if you could send an ephemeral message to the user when the interaction component (lets say a button) returns this.none()
or do i have to have to pass an argument to this.some() with the error
Solution:Jump to solution
the latter, none and some are only used to determine which handler to use among all the handlers as they are not statically bound to i.e. custom ids or commands due to the dynamicity of that data.
14 Replies
Solution
the latter, none and some are only used to determine which handler to use among all the handlers as they are not statically bound to i.e. custom ids or commands due to the dynamicity of that data.
and returning some from handler A ensures that handler B and C will never run
makes sense, but how are handlers sorted by order?
alphabetically iirc
ah okay
but not explicitly, it follows the order in which Node FS reads files from a directory and loops that way
so it goes down directory trees first as well
oh it recurses?
yes sapphire always does
commands/a/b/c/d/e/f/mycommand.ts
works perfectly fineneat, thanks for the solution though
@Rhys trying to mark this as answer but @Answer Overflow is giving me a "The application did not respond". The bot status also reports offline.
yeah i was also trying to consent to it
wouldnt be surprised if I'm not the first to report the bot is offline but it cant hurt to do so
He should be back up now sorry about that
ty ty