mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-06 04:38:21 +01:00
make matchProvider and valueProvider optional
This commit is contained in:
parent
afb849cfb6
commit
fcf1830887
@ -57,9 +57,9 @@ export class SlashCommandEnumValue {
|
||||
* @param {string} value - The value
|
||||
* @param {string?} description - Optional description, displayed in a second line
|
||||
* @param {EnumType?} type - type of the enum (defining its color)
|
||||
* @param {string} typeIcon - The icon to display (Can be pulled from `enumIcons` for common ones)
|
||||
* @param {string?} typeIcon - The icon to display (Can be pulled from `enumIcons` for common ones)
|
||||
*/
|
||||
constructor(value, description = null, type = 'enum', typeIcon = '◊', matchProvider, valueProvider) {
|
||||
constructor(value, description = null, type = 'enum', typeIcon = '◊', matchProvider = null, valueProvider = null) {
|
||||
this.value = value;
|
||||
this.description = description;
|
||||
this.type = type ?? 'enum';
|
||||
|
Loading…
x
Reference in New Issue
Block a user