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.

Parameters

NameTypeDescription
interactionChatInputCommandInteraction<CacheType>The interaction that ran this precondition.
commandCommand<Args, CommandOptions>The command the interaction invoked.
context?PreconditionContextThe context for the precondition.

Returns

PreconditionContainerReturn

Since

3.0.0

Defined in

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


contextMenuRun

contextMenuRun(interaction, command, context?): PreconditionContainerReturn

Runs a precondition container.

Parameters

NameTypeDescription
interactionContextMenuCommandInteraction<CacheType>The interaction that ran this precondition.
commandCommand<Args, CommandOptions>The command the interaction invoked.
context?PreconditionContextThe context for the precondition.

Returns

PreconditionContainerReturn

Since

3.0.0

Defined in

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


messageRun

messageRun(message, command, context?): PreconditionContainerReturn

Runs a precondition container.

Parameters

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

Returns

PreconditionContainerReturn

Since

1.0.0

Defined in

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