Abstract Class: AllFlowsPrecondition
Defined in: projects/framework/src/lib/structures/Precondition.ts:61
Extends
Constructors
Constructor
new AllFlowsPrecondition(
context:LoaderContext,options:PreconditionOptions):AllFlowsPrecondition
Defined in: projects/framework/src/lib/structures/Precondition.ts:24
Parameters
| Parameter | Type |
|---|---|
context | LoaderContext |
options | PreconditionOptions |
Returns
AllFlowsPrecondition
Inherited from
Properties
position
readonlyposition:null|number
Defined in: projects/framework/src/lib/structures/Precondition.ts:22
Inherited from
Methods
chatInputRun()
abstractchatInputRun(interaction:ChatInputCommandInteraction,command:ChatInputCommand,context:PreconditionContext):PreconditionResult
Defined in: projects/framework/src/lib/structures/Precondition.ts:64
Parameters
| Parameter | Type |
|---|---|
interaction | ChatInputCommandInteraction |
command | ChatInputCommand |
context | PreconditionContext |
Returns
Overrides
contextMenuRun()
abstractcontextMenuRun(interaction:ContextMenuCommandInteraction,command:ContextMenuCommand,context:PreconditionContext):PreconditionResult
Defined in: projects/framework/src/lib/structures/Precondition.ts:70
Parameters
| Parameter | Type |
|---|---|
interaction | ContextMenuCommandInteraction |
command | ContextMenuCommand |
context | PreconditionContext |
Returns
Overrides
error()
error(
options:Omit<Options,"precondition">):PreconditionResult
Defined in: projects/framework/src/lib/structures/Precondition.ts:47
Constructs a PreconditionError with the precondition parameter set to this.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | Omit<Options, "precondition"> | The information. |
Returns
Inherited from
fetchChannelFromInteraction()
protectedfetchChannelFromInteraction(interaction:CommandInteraction):Promise<TextBasedChannel>
Defined in: projects/framework/src/lib/structures/Precondition.ts:51
Parameters
| Parameter | Type |
|---|---|
interaction | CommandInteraction |
Returns
Inherited from
Precondition.fetchChannelFromInteraction
messageRun()
abstractmessageRun(message:Message,command:MessageCommand,context:PreconditionContext):PreconditionResult
Defined in: projects/framework/src/lib/structures/Precondition.ts:62
Parameters
| Parameter | Type |
|---|---|
message | Message |
command | MessageCommand |
context | PreconditionContext |
Returns
Overrides
ok()
ok():
PreconditionResult
Defined in: projects/framework/src/lib/structures/Precondition.ts:39