@pikokr/command.ts / Exports / Extension
Class: Extension
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new Extension(): Extension
Returns
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
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
Name | Type |
---|---|
component | unknown |
argList | unknown [] |
args | Collection <number , ComponentArgument > |
getConverterArgs | (arg : ComponentArgument , index : number , converter : ConverterComponent <unknown >) => unknown [] | Promise <unknown []> |
Returns
Promise
<void
>