Skip to main content

Module: types/types

Interfaces

Type Aliases

CommandHandler

Ƭ CommandHandler: (context: CommandContext, ...args: string[]) => Promise<CommandHandlerReturnValue> | CommandHandlerReturnValue

Type declaration

▸ (context, ...args): Promise<CommandHandlerReturnValue> | CommandHandlerReturnValue

Parameters
NameType
contextCommandContext
...argsstring[]
Returns

Promise<CommandHandlerReturnValue> | CommandHandlerReturnValue

Defined in

src/types/types.ts:10


CommandHandlerReturnValue

Ƭ CommandHandlerReturnValue: string | string[] | void

Defined in

src/types/types.ts:9


CommandMap

Ƭ CommandMap: Record<string, Command>

Defined in

src/types/types.ts:42


CommandWithName

Ƭ CommandWithName: Command & { name: string }

Defined in

src/types/types.ts:44


LogFunction

Ƭ LogFunction: (...args: string[]) => void

Type declaration

▸ (...args): void

Parameters
NameType
...argsstring[]
Returns

void

Defined in

src/types/types.ts:6


ModuleInitializeFunction

Ƭ ModuleInitializeFunction: (client: Client) => ModuleInitializeFunctionReturnType | (client: Client) => Promise<ModuleInitializeFunctionReturnType>

Defined in

src/types/types.ts:47


ModuleInitializeFunctionReturnType

Ƭ ModuleInitializeFunctionReturnType: CommandWithName | CommandMap | void

Defined in

src/types/types.ts:46


NormalizedCommand

Ƭ NormalizedCommand: Required<Command>

Defined in

src/types/types.ts:41


WalkFunction

Ƭ WalkFunction: (command: NormalizedCommand, fullCommand: string[]) => void

Type declaration

▸ (command, fullCommand): void

Parameters
NameType
commandNormalizedCommand
fullCommandstring[]
Returns

void

Defined in

src/types/types.ts:54