Skip to main content

Class: PreconditionContainerArray

Implements

Constructors

constructor

new PreconditionContainerArray(data?, parent?)

Parameters

NameTypeDefault value
dataPreconditionArrayResolvable[]
parentnull | PreconditionContainerArraynull

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerArray.ts:127

Properties

entries

Readonly entries: IPreconditionContainer[]

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerArray.ts:119


mode

Readonly mode: PreconditionRunMode

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerArray.ts:113


runCondition

Readonly runCondition: PreconditionRunCondition

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerArray.ts:125


conditions

Static Readonly conditions: Collection<PreconditionRunCondition, IPreconditionCondition>

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerArray.ts:247

Accessors

condition

Protected get condition(): IPreconditionCondition

Returns

IPreconditionCondition

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerArray.ts:222

Methods

add

add(entry): PreconditionContainerArray

Parameters

NameTypeDescription
entryIPreconditionContainer

Returns

PreconditionContainerArray

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerArray.ts:149


append

append(keyOrEntries): PreconditionContainerArray

Parameters

NameType
keyOrEntriesPreconditionContainerArray | SimplePreconditionKeys | SimplePreconditionSingleResolvableDetails

Returns

PreconditionContainerArray

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerArray.ts:154

append<K>(entry): PreconditionContainerArray

Type parameters

NameType
Kextends keyof Preconditions

Parameters

NameType
entryPreconditionSingleResolvableDetails<K>

Returns

PreconditionContainerArray

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerArray.ts:155


chatInputRun

chatInputRun(interaction, command, context?): PreconditionContainerReturn

Parameters

NameTypeDescription
interactionCommandInteraction<CacheType>
commandChatInputCommand
contextPreconditionContext-

Returns

PreconditionContainerReturn

Implementation of

IPreconditionContainer.chatInputRun

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerArray.ts:179


contextMenuRun

contextMenuRun(interaction, command, context?): PreconditionContainerReturn

Parameters

NameTypeDescription
interactionContextMenuInteraction<CacheType>
commandContextMenuCommand
contextPreconditionContext-

Returns

PreconditionContainerReturn

Implementation of

IPreconditionContainer.contextMenuRun

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerArray.ts:191


messageRun

messageRun(message, command, context?): PreconditionContainerReturn

Parameters

NameTypeDescription
messageMessage<boolean>
commandMessageCommand
contextPreconditionContext-

Returns

PreconditionContainerReturn

Implementation of

IPreconditionContainer.messageRun

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerArray.ts:167


parse

Protected parse(entries): PreconditionContainerArray

Parameters

NameTypeDescription
entriesIterable<PreconditionEntryResolvable>

Returns

PreconditionContainerArray

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerArray.ts:206