Skip to main content

Interface: IPreconditionCondition

Defines the condition for PreconditionContainerArrays to run.

since 1.0.0

Methods

parallel

โ–ธ parallel(message, command, entries, context): PreconditionContainerReturn

Runs all the containers using Promise.all, then checks the results once all tasks finished running.

seealso {@link PreconditionRunMode.parallel}

since 1.0.0

Parameters

NameTypeDescription
messageMessage<boolean>The message that ran this precondition.
commandCommand<Args, CommandOptions>The command the message invoked.
entriesreadonly IPreconditionContainer[]The containers to run.
contextPreconditionContext-

Returns

PreconditionContainerReturn

Defined in

projects/framework/src/lib/utils/preconditions/conditions/IPreconditionCondition.ts:34


sequential

โ–ธ sequential(message, command, entries, context): PreconditionContainerReturn

Runs the containers one by one.

seealso {@link PreconditionRunMode.sequential}

since 1.0.0

Parameters

NameTypeDescription
messageMessage<boolean>The message that ran this precondition.
commandCommand<Args, CommandOptions>The command the message invoked.
entriesreadonly IPreconditionContainer[]The containers to run.
contextPreconditionContext-

Returns

PreconditionContainerReturn

Defined in

projects/framework/src/lib/utils/preconditions/conditions/IPreconditionCondition.ts:19