Skip to main content

Interface: IArgument<T>

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

Type Parameters​

Type Parameter
T

Properties​

name​

readonly name: string

Defined in: projects/framework/src/lib/structures/Argument.ts:28

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

Methods​

run()​

run(parameter: string, context: Context<T>): AwaitableResult<T>

Defined in: projects/framework/src/lib/structures/Argument.ts:35

The method which is called when invoking the argument.

Parameters​

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

Returns​

AwaitableResult<T>