Skip to main content

Interface: IArgument<T>

Type parameters

Name
T

Implemented by

Properties

name

โ€ข Readonly name: string

The name of the argument, this is used to make the identification of an argument easier.

Defined in

projects/framework/src/lib/structures/Argument.ts:24

Methods

run

โ–ธ run(parameter, context): Result<T>

The method which is called when invoking the argument.

Parameters

NameTypeDescription
parameterstringThe string parameter to parse.
contextContext<T>The context for the method call, contains the message, command, and other options.

Returns

Result<T>

Defined in

projects/framework/src/lib/structures/Argument.ts:31