Interface: IPreconditionContainer
An abstracted precondition container to be implemented by classes.
Since
1.0.0
Methods
chatInputRun()
chatInputRun(
interaction
:ChatInputCommandInteraction
<CacheType
>,command
:Command
<Args
,CommandOptions
>,context
?:PreconditionContext
):PreconditionContainerReturn
Runs a precondition container.
Parameters
Parameter | Type | Description |
---|---|---|
interaction | ChatInputCommandInteraction <CacheType > | The interaction that ran this precondition. |
command | Command <Args , CommandOptions > | The command the interaction invoked. |
context ? | PreconditionContext | The context for the precondition. |
Returns
Since
3.0.0
Defined in
projects/framework/src/lib/utils/preconditions/IPreconditionContainer.ts:46
contextMenuRun()
contextMenuRun(
interaction
:ContextMenuCommandInteraction
<CacheType
>,command
:Command
<Args
,CommandOptions
>,context
?:PreconditionContext
):PreconditionContainerReturn
Runs a precondition container.
Parameters
Parameter | Type | Description |
---|---|---|
interaction | ContextMenuCommandInteraction <CacheType > | The interaction that ran this precondition. |
command | Command <Args , CommandOptions > | The command the interaction invoked. |
context ? | PreconditionContext | The context for the precondition. |
Returns
Since
3.0.0
Defined in
projects/framework/src/lib/utils/preconditions/IPreconditionContainer.ts:54
messageRun()
messageRun(
message
:Message
<boolean
>,command
:Command
<Args
,CommandOptions
>,context
?:PreconditionContext
):PreconditionContainerReturn
Runs a precondition container.
Parameters
Parameter | Type | Description |
---|---|---|
message | Message <boolean > | The message that ran this precondition. |
command | Command <Args , CommandOptions > | The command the message invoked. |
context ? | PreconditionContext | The context for the precondition. |
Returns
Since
1.0.0
Defined in
projects/framework/src/lib/utils/preconditions/IPreconditionContainer.ts:38