Class: PreconditionStore
Extends
Store<Precondition,"preconditions">
Constructors
new PreconditionStore()
new PreconditionStore():
PreconditionStore
Returns
Overrides
Store<Precondition, 'preconditions'>.constructor
Defined in
projects/framework/src/lib/structures/PreconditionStore.ts:11
Methods
chatInputRun()
chatInputRun(
interaction:ChatInputCommandInteraction<CacheType>,command:ChatInputCommand,context:PreconditionContext):AsyncPreconditionResult
Parameters
| Parameter | Type |
|---|---|
interaction | ChatInputCommandInteraction<CacheType> |
command | ChatInputCommand |
context | PreconditionContext |
Returns
Defined in
projects/framework/src/lib/structures/PreconditionStore.ts:32
clear()
clear():
void
Returns
void
Overrides
Store.clear
Defined in
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
Defined in
projects/framework/src/lib/structures/PreconditionStore.ts:53
delete()
delete(
key:string):boolean
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
boolean
true if an element in the Map existed and has been removed, or false if the element does not exist.
Overrides
Store.delete
Defined in
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
Defined in
projects/framework/src/lib/structures/PreconditionStore.ts:15
set()
set(
key:string,value:Precondition<PreconditionOptions>):this
Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
Parameters
| Parameter | Type |
|---|---|
key | string |
value | Precondition<PreconditionOptions> |
Returns
this
Overrides
Store.set
Defined in
projects/framework/src/lib/structures/PreconditionStore.ts:74