DispatchedCall
interface in meocord/testing Since 4.1.0
interface DispatchedCall extends InvocationResultWhat TestingModule.dispatch did with an interaction, a message or a reaction.
Members
ran
ran: booleanWhether any handler ran.
error
error?: unknownThe first error a handler's call ended with, or an error the built-in fallback answered as the
user's own outcome, such as a CommandNotFoundError. For a call made while init() ran, which a close() then
ended, it is an error with the message "The bot stopped before this call started.": the call doesn't start.
handlers
handlers: DispatchedHandler[]Every handler dispatch reached, in the order it ran them; empty when none takes the input, and for a call that didn't start, which is never routed.