Options
All
  • Public
  • Public/Protected
  • All
Menu

Module command/command

Index

Command Type aliases

CommandCallbackBefore

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

Type declaration

    • (context: Context): Promise<boolean> | boolean
    • Parameters

      Returns Promise<boolean> | boolean

CommandCallbackBeforeRun

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

Type declaration

CommandCallbackCancel

CommandCallbackCancel: (context: Context) => Promise<any | Message> | any | Message

Type declaration

CommandCallbackCancelRun

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

Type declaration

CommandCallbackDmBlocked

CommandCallbackDmBlocked: (context: Context) => Promise<any | Message> | any | Message

Type declaration

CommandCallbackError

CommandCallbackError: (context: Context, args: ParsedArgs, error: any) => Promise<any> | any

Type declaration

CommandCallbackPermissionsFail

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

Type declaration

CommandCallbackRatelimit

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

Type declaration

CommandCallbackRun

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

Type declaration

CommandCallbackRunError

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

Type declaration

CommandCallbackSuccess

CommandCallbackSuccess: (context: Context, args: ParsedArgs) => Promise<any> | any

Type declaration

CommandCallbackTypeError

CommandCallbackTypeError: (context: Context, args: ParsedArgs, errors: ParsedErrors) => Promise<any | Message> | any | Message

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[]

Generated using TypeDoc