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:67

Properties

context

Readonly context: Record<PropertyKey, unknown>

Defined in

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


name

Readonly name: string

Defined in

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

Methods

chatInputRun

chatInputRun(interaction, command, context?): PreconditionResult

Parameters

NameTypeDescription
interactionChatInputCommandInteraction<CacheType>
commandChatInputCommand
contextPreconditionContext

Returns

PreconditionResult

Implementation of

IPreconditionContainer.chatInputRun

Defined in

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


contextMenuRun

contextMenuRun(interaction, command, context?): PreconditionResult

Parameters

NameTypeDescription
interactionContextMenuCommandInteraction<CacheType>
commandContextMenuCommand
contextPreconditionContext

Returns

PreconditionResult

Implementation of

IPreconditionContainer.contextMenuRun

Defined in

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


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:84