Skip to content
GitHub

DispatchedCall

interface in meocord/testing Since 4.1.0

interface DispatchedCall extends InvocationResult

What TestingModule.dispatch did with an interaction, a message or a reaction.

Members

ran

ran: boolean

Whether any handler ran.

error

error?: unknown

The 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.

handlers

handlers: DispatchedHandler[]

Every handler dispatch reached, in the order it ran them; empty when none takes the input.