> Requires [discord dashboard](https://www.npmjs.com/package/discord-dashboard)
npm install dbd-settings-handlerjs
const { Category, Option, init } = require('dbd-settings-handler')
init(); // Uses sqlite by default, accepts string of a keyv adapter
// DBD Config...
{
settings: [
new Category()
.setId('setup') // Sets the id of the category - must be unique
.setName("Setup") // Name of the category
.setDescription("Setup your bot with default settings!") // Description of the category
.addOptions(
new Option() // Creates a new option inside the category
.setId('lang') // Sets the id of the option - must be unique
.setName("Language") // Name of the option
.setDescription("Change bot's language easily") // Description of the option
.setType(DBD.formTypes.select({"Polish": 'pl', "English": 'en', "French": 'fr'})), // The DBD form type function
new Option()
.setId('join_message')
.setName("Join Message")
.setDescription("Is the join message enabled?")
.setType(DBD.formTypes.switch(false))
)
]
}
``