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