Class: PreconditionStore
Extends
Store<Precondition,"preconditions">
Constructors
new PreconditionStore()
new PreconditionStore():
PreconditionStore
Returns
Overrides
Store<Precondition, 'preconditions'>.constructor
Source
projects/framework/src/lib/structures/PreconditionStore.ts:11
Properties
globalPreconditions
privatereadonlyglobalPreconditions:Precondition<PreconditionOptions>[] =[]
Source
projects/framework/src/lib/structures/PreconditionStore.ts:9
Methods
chatInputRun()
chatInputRun(
interaction:ChatInputCommandInteraction<CacheType>,command:ChatInputCommand,context:PreconditionContext):AsyncPreconditionResult
Parameters
| Parameter | Type |
|---|---|
interaction | ChatInputCommandInteraction <CacheType> |
command | ChatInputCommand |
context | PreconditionContext |
Returns
Source
projects/framework/src/lib/structures/PreconditionStore.ts:32
clear()
clear():
void
Returns
void
Overrides
Store.clear
Source
projects/framework/src/lib/structures/PreconditionStore.ts:95
contextMenuRun()
contextMenuRun(
interaction:ContextMenuCommandInteraction<CacheType>,command:ContextMenuCommand,context:PreconditionContext):AsyncPreconditionResult
Parameters
| Parameter | Type |
|---|---|
interaction | ContextMenuCommandInteraction <CacheType> |
command | ContextMenuCommand |
context | PreconditionContext |
Returns
Source
projects/framework/src/lib/structures/PreconditionStore.ts:53
delete()
delete(
key:string):boolean
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
boolean
Overrides
Store.delete
Source
projects/framework/src/lib/structures/PreconditionStore.ts:86
messageRun()
messageRun(
message:Message<boolean>,command:MessageCommand,context:PreconditionContext):AsyncPreconditionResult
Parameters
| Parameter | Type |
|---|---|
message | Message<boolean> |
command | MessageCommand |
context | PreconditionContext |
Returns
Source
projects/framework/src/lib/structures/PreconditionStore.ts:15
set()
set(
key:string,value:Precondition<PreconditionOptions>):this
Parameters
| Parameter | Type |
|---|---|
key | string |
value | Precondition <PreconditionOptions> |
Returns
this
Overrides
Store.set
Source
projects/framework/src/lib/structures/PreconditionStore.ts:74