• If you need help or want to discuss things, you now can also join us on our Discord Server!

[Bug] default values in Script config only works in the first layer

syscaller

Donor
is awesome!
is uber awesome!
Sinusbot-Version: v1.0.0-beta.10-202ee4d

The sinusbot-commands.js v1.0.0 has implemented the feature of default values for the config of a script. However, this feature only works fine in the first layer:
JSON:
vars: [
    {
        name: 'createSuccessReaction',
        title: 'Add a reaction to each command if it was successfull.',
        type: 'checkbox',
        default: true //This will work perfectly :)
    },
]
but not in a second layer like this:
JSON:
vars: [
    {
        name: 'testarray'
        title: 'example Array which does not allow default values'
        type: 'array'
        vars: [
            {
                name: 'createSuccessReaction',
                title: 'Add a reaction to each command if it was successfull.',
                type: 'checkbox',
                default: true //This will not work :(
            }
        ]
    }
]
 
Last edited:

syscaller

Donor
is awesome!
is uber awesome!
are there plans to implement this? Also ... im currently using v1.0.0-beta.14 which changelog isnt documented in the forum/resources.
 
Top