DispatchOutcome
type alias in meocord/interface Since 4.1.0
type DispatchOutcome =
'ran' | 'denied' | 'cooldown' | 'invalid' | 'refused' | 'error' | 'not-found'How a dispatched call ended, as a DispatchObserver is told.
'ran': it settled without an error. An interceptor that answers without callingnext.handle(), from a cache for instance, counts too.'denied': a guard returnedfalseor threwGuardDeniedError.'cooldown': a@Cooldownrefused it withCooldownError.'invalid': the user's input doesn't fit:@Validaterefused it withValidationError, or a message named a command it doesn't fit, aMessageUsageError: a word of the wrong type, a param left out, a flag the command lacks, a command sent where it doesn't work, or a parent's words alone.'refused': aUserErrortold the user what to fix, such as too few coins: their mistake, not a fault of the bot.'error': anything else was thrown, by the handler, a pipe, an interceptor or a guard.'not-found': an interaction no handler matches and nothing else answers, such as a button whose customId no pattern routes, or an autocomplete no@Autocompleteclaims.