Skip to main content

Class: abstract AllFlowsPrecondition

Extends​

Constructors​

new AllFlowsPrecondition()​

new AllFlowsPrecondition(context: LoaderContext, options: PreconditionOptions): AllFlowsPrecondition

Parameters​

ParameterType
contextLoaderContext
optionsPreconditionOptions

Returns​

AllFlowsPrecondition

Inherited from​

Precondition.constructor

Defined in​

projects/framework/src/lib/structures/Precondition.ts:24

Properties​

position​

readonly position: null | number

Inherited from​

Precondition.position

Defined in​

projects/framework/src/lib/structures/Precondition.ts:22

Methods​

chatInputRun()​

abstract chatInputRun(interaction: ChatInputCommandInteraction<CacheType>, command: ChatInputCommand, context: PreconditionContext): PreconditionResult

Parameters​

ParameterType
interactionChatInputCommandInteraction<CacheType>
commandChatInputCommand
contextPreconditionContext

Returns​

PreconditionResult

Overrides​

Precondition.chatInputRun

Defined in​

projects/framework/src/lib/structures/Precondition.ts:64


contextMenuRun()​

abstract contextMenuRun(interaction: ContextMenuCommandInteraction<CacheType>, command: ContextMenuCommand, context: PreconditionContext): PreconditionResult

Parameters​

ParameterType
interactionContextMenuCommandInteraction<CacheType>
commandContextMenuCommand
contextPreconditionContext

Returns​

PreconditionResult

Overrides​

Precondition.contextMenuRun

Defined in​

projects/framework/src/lib/structures/Precondition.ts:70


error()​

error(options: Omit<Options, "precondition">): PreconditionResult

Constructs a PreconditionError with the precondition parameter set to this.

Parameters​

ParameterTypeDescription
optionsOmit<Options, "precondition">The information.

Returns​

PreconditionResult

Inherited from​

Precondition.error

Defined in​

projects/framework/src/lib/structures/Precondition.ts:47


fetchChannelFromInteraction()​

protected fetchChannelFromInteraction(interaction: CommandInteraction<CacheType>): Promise<TextBasedChannel>

Parameters​

ParameterType
interactionCommandInteraction<CacheType>

Returns​

Promise<TextBasedChannel>

Inherited from​

Precondition.fetchChannelFromInteraction

Defined in​

projects/framework/src/lib/structures/Precondition.ts:51


messageRun()​

abstract messageRun(message: Message<boolean>, command: MessageCommand, context: PreconditionContext): PreconditionResult

Parameters​

ParameterType
messageMessage<boolean>
commandMessageCommand
contextPreconditionContext

Returns​

PreconditionResult

Overrides​

Precondition.messageRun

Defined in​

projects/framework/src/lib/structures/Precondition.ts:62


ok()​

ok(): PreconditionResult

Returns​

PreconditionResult

Inherited from​

Precondition.ok

Defined in​

projects/framework/src/lib/structures/Precondition.ts:39