Skip to main content

Interface: IPreconditionContainer

An abstracted precondition container to be implemented by classes.

since 1.0.0

Implemented by

Methods

chatInputRun

chatInputRun(interaction, command, context?): PreconditionContainerReturn

Runs a precondition container.

since 3.0.0

Parameters

NameTypeDescription
interactionCommandInteraction<CacheType>The interaction that ran this precondition.
commandCommand<Args, CommandOptions>The command the interaction invoked.
context?PreconditionContext-

Returns

PreconditionContainerReturn

Defined in

projects/framework/src/lib/utils/preconditions/IPreconditionContainer.ts:44


contextMenuRun

contextMenuRun(interaction, command, context?): PreconditionContainerReturn

Runs a precondition container.

since 3.0.0

Parameters

NameTypeDescription
interactionContextMenuInteraction<CacheType>The interaction that ran this precondition.
commandCommand<Args, CommandOptions>The command the interaction invoked.
context?PreconditionContext-

Returns

PreconditionContainerReturn

Defined in

projects/framework/src/lib/utils/preconditions/IPreconditionContainer.ts:51


messageRun

messageRun(message, command, context?): PreconditionContainerReturn

Runs a precondition container.

since 1.0.0

Parameters

NameTypeDescription
messageMessage<boolean>The message that ran this precondition.
commandCommand<Args, CommandOptions>The command the message invoked.
context?PreconditionContext-

Returns

PreconditionContainerReturn

Defined in

projects/framework/src/lib/utils/preconditions/IPreconditionContainer.ts:37