레퍼런스
classes
Extension

@pikokr/command.ts / Exports / Extension

Class: Extension

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new Extension(): Extension

Returns

Extension

Properties

_logger

Protected Optional _logger: Logger<unknown>

Defined in

src/core/extensions/Extension.ts:17 (opens in a new tab)

Accessors

client

get client(): Client<boolean>

Returns

Client<boolean>

Defined in

src/core/extensions/Extension.ts:13 (opens in a new tab)


commandClient

get commandClient(): CommandClient

Returns

CommandClient

Defined in

src/core/extensions/Extension.ts:9 (opens in a new tab)


logger

get logger(): Logger<unknown>

Returns

Logger<unknown>

Defined in

src/core/extensions/Extension.ts:19 (opens in a new tab)

Methods

convertArguments

convertArguments(component, argList, args, getConverterArgs): Promise<void>

Parameters

NameType
componentunknown
argListunknown[]
argsCollection<number, ComponentArgument>
getConverterArgs(arg: ComponentArgument, index: number, converter: ConverterComponent<unknown>) => unknown[] | Promise<unknown[]>

Returns

Promise<void>

Defined in

src/core/extensions/Extension.ts:24 (opens in a new tab)