Module: types/types
Interfaces
Type Aliases
CommandHandler
Ƭ CommandHandler: (context
: CommandContext
, ...args
: string
[]) => Promise
<CommandHandlerReturnValue
> | CommandHandlerReturnValue
Type declaration
▸ (context
, ...args
): Promise
<CommandHandlerReturnValue
> | CommandHandlerReturnValue
Parameters
Name | Type |
---|---|
context | CommandContext |
...args | string [] |
Returns
Promise
<CommandHandlerReturnValue
> | CommandHandlerReturnValue
Defined in
CommandHandlerReturnValue
Ƭ CommandHandlerReturnValue: string
| string
[] | void
Defined in
CommandMap
Ƭ CommandMap: Record
<string
, Command
>
Defined in
CommandWithName
Ƭ CommandWithName: Command
& { name
: string
}
Defined in
LogFunction
Ƭ LogFunction: (...args
: string
[]) => void
Type declaration
▸ (...args
): void
Parameters
Name | Type |
---|---|
...args | string [] |
Returns
void
Defined in
ModuleInitializeFunction
Ƭ ModuleInitializeFunction: (client
: Client
) => ModuleInitializeFunctionReturnType
| (client
: Client
) => Promise
<ModuleInitializeFunctionReturnType
>
Defined in
ModuleInitializeFunctionReturnType
Ƭ ModuleInitializeFunctionReturnType: CommandWithName
| CommandMap
| void
Defined in
NormalizedCommand
Ƭ NormalizedCommand: Required
<Command
>
Defined in
WalkFunction
Ƭ WalkFunction: (command
: NormalizedCommand
, fullCommand
: string
[]) => void
Type declaration
▸ (command
, fullCommand
): void
Parameters
Name | Type |
---|---|
command | NormalizedCommand |
fullCommand | string [] |
Returns
void