• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

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

syscaller

Active Member
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

Active Member
are there plans to implement this? Also ... im currently using v1.0.0-beta.14 which changelog isnt documented in the forum/resources.
 
Top