Properties Private ActionAction: typeof Action
Readonly clientclient: Client < boolean >
Readonly commandscommands: SlashCommands = ...
compile Commands compile Commands: ( nesting?: number ) => CommandCollection
Type declaration ( nesting?: number ) : CommandCollection Parameters Returns CommandCollection Private component Handlercomponent Handler: ComponentHandler
Readonly ignore Capsignore Caps: boolean
name name: undefined | string = undefined
on on
: < T > ( trigger
: string | RegExp | string [] , action
: T , parameters
?: T extends Router ? never : undefined | { description
?: string ; name
: string ; type
?: "SUB_COMMAND" | "SUB_COMMAND_GROUP" | "STRING" | "INTEGER" | "BOOLEAN" | "USER" | "CHANNEL" | "ROLE" | "MENTIONABLE" | "NUMBER" } [] ) => Router Type declaration < T > ( trigger: string | RegExp | string [] , action: T , parameters?: T extends Router ? never : undefined | { description?: string ; name: string ; type?: "SUB_COMMAND" | "SUB_COMMAND_GROUP" | "STRING" | "INTEGER" | "BOOLEAN" | "USER" | "CHANNEL" | "ROLE" | "MENTIONABLE" | "NUMBER" } [] ) : Router Type parameters Parameters trigger: string | RegExp | string [] action: T Optional parameters: T extends Router ? never : undefined | { description?: string ; name: string ; type?: "SUB_COMMAND" | "SUB_COMMAND_GROUP" | "STRING" | "INTEGER" | "BOOLEAN" | "USER" | "CHANNEL" | "ROLE" | "MENTIONABLE" | "NUMBER" } []
on Typo on
Typo
: ( action
: TypoAction , options
?: TypoOptions ) => Router Type declaration ( action: TypoAction , options?: TypoOptions ) : Router Parameters action: TypoAction Optional options: TypoOptions Readonly prefixprefix: undefined | string
register Action register
Action
: < T > ( trigger
: string | RegExp | string [] , action
: T , parameters
?: T extends Router ? never : undefined | { description
?: string ; name
: string ; type
?: "SUB_COMMAND" | "SUB_COMMAND_GROUP" | "STRING" | "INTEGER" | "BOOLEAN" | "USER" | "CHANNEL" | "ROLE" | "MENTIONABLE" | "NUMBER" } [] ) => Router Type declaration < T > ( trigger: string | RegExp | string [] , action: T , parameters?: T extends Router ? never : undefined | { description?: string ; name: string ; type?: "SUB_COMMAND" | "SUB_COMMAND_GROUP" | "STRING" | "INTEGER" | "BOOLEAN" | "USER" | "CHANNEL" | "ROLE" | "MENTIONABLE" | "NUMBER" } [] ) : Router Type parameters Parameters trigger: string | RegExp | string [] action: T Optional parameters: T extends Router ? never : undefined | { description?: string ; name: string ; type?: "SUB_COMMAND" | "SUB_COMMAND_GROUP" | "STRING" | "INTEGER" | "BOOLEAN" | "USER" | "CHANNEL" | "ROLE" | "MENTIONABLE" | "NUMBER" } []
Readonly suffixsuffix: undefined | string
Readonly tokentoken: string
The Bot object, pass in a Discord API token and set the options according to your needs. Note that you're required to set either a prefix and/or a suffix