Skip to main content

Class: PreconditionContainerSingle

Implements

Constructors

constructor

new PreconditionContainerSingle(data)

Parameters

NameType
dataPreconditionSingleResolvable

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerSingle.ts:64

Properties

context

Readonly context: Record<PropertyKey, unknown>

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerSingle.ts:56


name

Readonly name: string

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerSingle.ts:62

Methods

chatInputRun

chatInputRun(interaction, command, context?): PreconditionResult

Parameters

NameTypeDescription
interactionCommandInteraction<CacheType>
commandChatInputCommand
contextPreconditionContext-

Returns

PreconditionResult

Implementation of

IPreconditionContainer.chatInputRun

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerSingle.ts:97


contextMenuRun

contextMenuRun(interaction, command, context?): PreconditionResult

Parameters

NameTypeDescription
interactionContextMenuInteraction<CacheType>
commandContextMenuCommand
contextPreconditionContext-

Returns

PreconditionResult

Implementation of

IPreconditionContainer.contextMenuRun

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerSingle.ts:114


messageRun

messageRun(message, command, context?): PreconditionResult

Parameters

NameTypeDescription
messageMessage<boolean>
commandMessageCommand
contextPreconditionContext-

Returns

PreconditionResult

Implementation of

IPreconditionContainer.messageRun

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerSingle.ts:80