Options
All
  • Public
  • Public/Protected
  • All
Menu

Module interaction/command

Index

InteractionCommand Type aliases

ArgumentConverter

ArgumentConverter: (value: any, context: InteractionContext) => Promise<any> | any

Type declaration

ArgumentDefault

ArgumentDefault: ((context: InteractionContext) => Promise<any> | any) | any

CommandCallbackBefore

CommandCallbackBefore: (context: InteractionContext) => Promise<boolean> | boolean

Type declaration

CommandCallbackBeforeRun

CommandCallbackBeforeRun: (context: InteractionContext, args: ParsedArgs) => Promise<boolean> | boolean

Type declaration

CommandCallbackCancel

CommandCallbackCancel: (context: InteractionContext) => Promise<any> | any

Type declaration

CommandCallbackCancelRun

CommandCallbackCancelRun: (context: InteractionContext, args: ParsedArgs) => Promise<any> | any

Type declaration

CommandCallbackDmBlocked

CommandCallbackDmBlocked: (context: InteractionContext) => Promise<any> | any

Type declaration

CommandCallbackError

CommandCallbackError: (context: InteractionContext, error: any) => Promise<any> | any

Type declaration

CommandCallbackLoadingTrigger

CommandCallbackLoadingTrigger: (context: InteractionContext) => Promise<any> | any

Type declaration

CommandCallbackPermissionsFail

CommandCallbackPermissionsFail: (context: InteractionContext, permissions: FailedPermissions) => Promise<any> | any

Type declaration

CommandCallbackRatelimit

CommandCallbackRatelimit: (context: InteractionContext, ratelimits: CommandRatelimitInfo[], metadata: CommandRatelimitMetadata) => Promise<any> | any

Type declaration

CommandCallbackRun

CommandCallbackRun: (context: InteractionContext, args: ParsedArgs) => Promise<any> | any

Type declaration

CommandCallbackRunError

CommandCallbackRunError: (context: InteractionContext, args: ParsedArgs, error: any) => Promise<any> | any

Type declaration

CommandCallbackSuccess

CommandCallbackSuccess: (context: InteractionContext) => Promise<any> | any

Type declaration

CommandCallbackValueError

CommandCallbackValueError: (context: InteractionContext, args: ParsedArgs, errors: ParsedErrors) => Promise<any> | any

Type declaration

Other Type aliases

CommandRatelimitInfo

CommandRatelimitInfo: { item: CommandRatelimitItem; ratelimit: CommandRatelimit; remaining: number }

Type declaration

CommandRatelimitMetadata

CommandRatelimitMetadata: { global: boolean; now: number }

Type declaration

  • global: boolean
  • now: number

FailedPermissions

FailedPermissions: bigint[]

InteractionCommandInvoker

InteractionCommandInvoker: InteractionCommand | InteractionCommandOption

ParsedArgs

ParsedArgs: Record<string, any>

ParsedErrors

ParsedErrors: Record<string, Error>

Generated using TypeDoc