Class: PreconditionContainerSingle
Implements
Constructors
constructor
• new PreconditionContainerSingle(data
)
Parameters
Name | Type |
---|---|
data | PreconditionSingleResolvable |
Defined in
projects/framework/src/lib/utils/preconditions/PreconditionContainerSingle.ts:67
Properties
context
• Readonly
context: Record
<PropertyKey
, unknown
>
Defined in
projects/framework/src/lib/utils/preconditions/PreconditionContainerSingle.ts:59
name
• Readonly
name: string
Defined in
projects/framework/src/lib/utils/preconditions/PreconditionContainerSingle.ts:65
Methods
chatInputRun
▸ chatInputRun(interaction
, command
, context?
): PreconditionResult
Parameters
Name | Type | Description |
---|---|---|
interaction | ChatInputCommandInteraction <CacheType > | |
command | ChatInputCommand | |
context | PreconditionContext |
Returns
Implementation of
IPreconditionContainer.chatInputRun
Defined in
projects/framework/src/lib/utils/preconditions/PreconditionContainerSingle.ts:104
contextMenuRun
▸ contextMenuRun(interaction
, command
, context?
): PreconditionResult
Parameters
Name | Type | Description |
---|---|---|
interaction | ContextMenuCommandInteraction <CacheType > | |
command | ContextMenuCommand | |
context | PreconditionContext |
Returns
Implementation of
IPreconditionContainer.contextMenuRun
Defined in
projects/framework/src/lib/utils/preconditions/PreconditionContainerSingle.ts:124
messageRun
▸ messageRun(message
, command
, context?
): PreconditionResult
Parameters
Name | Type | Description |
---|---|---|
message | Message <boolean > | |
command | MessageCommand | |
context | PreconditionContext |
Returns
Implementation of
IPreconditionContainer.messageRun
Defined in
projects/framework/src/lib/utils/preconditions/PreconditionContainerSingle.ts:84