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

Source

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

Properties

position

readonly position: null | number

Inherited from

Precondition . position

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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


ok()

ok(): PreconditionResult

Returns

PreconditionResult

Inherited from

Precondition . ok

Source

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