Interface: IPreconditionContainer
An abstracted precondition container to be implemented by classes.
Since
1.0.0
Implemented by
Methods
chatInputRun
▸ chatInputRun(interaction
, command
, context?
): PreconditionContainerReturn
Runs a precondition container.
Since
3.0.0
Parameters
Name | 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
Defined in
projects/framework/src/lib/utils/preconditions/IPreconditionContainer.ts:46
contextMenuRun
▸ contextMenuRun(interaction
, command
, context?
): PreconditionContainerReturn
Runs a precondition container.
Since
3.0.0
Parameters
Name | 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
Defined in
projects/framework/src/lib/utils/preconditions/IPreconditionContainer.ts:54
messageRun
▸ messageRun(message
, command
, context?
): PreconditionContainerReturn
Runs a precondition container.
Since
1.0.0
Parameters
Name | 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
Defined in
projects/framework/src/lib/utils/preconditions/IPreconditionContainer.ts:38