Class: abstract
AllFlowsPrecondition
Extends
Constructors
new AllFlowsPrecondition()
new AllFlowsPrecondition(
context
:LoaderContext
,options
:PreconditionOptions
):AllFlowsPrecondition
Parameters
Parameter | Type |
---|---|
context | LoaderContext |
options | PreconditionOptions |
Returns
Inherited from
Defined in
projects/framework/src/lib/structures/Precondition.ts:24
Properties
position
readonly
position:null
|number
Inherited from
Defined in
projects/framework/src/lib/structures/Precondition.ts:22
Methods
chatInputRun()
abstract
chatInputRun(interaction
:ChatInputCommandInteraction
<CacheType
>,command
:ChatInputCommand
,context
:PreconditionContext
):PreconditionResult
Parameters
Parameter | Type |
---|---|
interaction | ChatInputCommandInteraction <CacheType > |
command | ChatInputCommand |
context | PreconditionContext |
Returns
Overrides
Defined in
projects/framework/src/lib/structures/Precondition.ts:64
contextMenuRun()
abstract
contextMenuRun(interaction
:ContextMenuCommandInteraction
<CacheType
>,command
:ContextMenuCommand
,context
:PreconditionContext
):PreconditionResult
Parameters
Parameter | Type |
---|---|
interaction | ContextMenuCommandInteraction <CacheType > |
command | ContextMenuCommand |
context | PreconditionContext |
Returns
Overrides
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
Parameter | Type | Description |
---|---|---|
options | Omit <Options , "precondition" > | The information. |
Returns
Inherited from
Defined in
projects/framework/src/lib/structures/Precondition.ts:47
fetchChannelFromInteraction()
protected
fetchChannelFromInteraction(interaction
:CommandInteraction
<CacheType
>):Promise
<TextBasedChannel
>
Parameters
Parameter | Type |
---|---|
interaction | CommandInteraction <CacheType > |
Returns
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
Parameter | Type |
---|---|
message | Message <boolean > |
command | MessageCommand |
context | PreconditionContext |
Returns
Overrides
Defined in
projects/framework/src/lib/structures/Precondition.ts:62
ok()
ok():
PreconditionResult