Skip to content
GitHub

InvocationResult

interface in meocord/testing Since 4.1.0

interface InvocationResult

How a call made with TestingModule.invoke ended.

Members

ran

ran: boolean

Whether the handler ran; false when a guard denied the call or an interceptor skipped it.

error

error?: unknown

The error a filter handled, when the call failed and a @UseFilter or global filter caught it. 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.", and ran is false: the call doesn't start, as one the bot drops when it stops.