mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	make matchProvider and valueProvider optional
This commit is contained in:
		@@ -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';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user