Skip to content
On this page

Settings

Reminder!

This MUST be placed into your DBD Config NOT your Theme Config!

js
settings: [
    {
        categoryId: 'input',
        categoryName: `New Category`,
        categoryImageURL: 'URL To image',
        categoryDescription: "Setup your bot with default settings!",
        categoryOptionsList: [
            {

            }
        ]
    }
],

Toggleable Category

Toggleable Category?

Want to know how to add toggle-able categories? Look no further!

js
    settings : [
        {
            categoryId: 'input',
            categoryName: 'New Category',
            categoryImageURL: 'URL To image',
            categoryDescription: "Setup your bot with default settings!",

            /* Heres the magical code! This is all you need to add to make it work */
            toggleable: true,
            getActualSet: async ({ guild }) => {
                return settings['toggleeco'];
            },
            setNew: async ({ guild, newData }) => {
                settings['toggleeco'] = newData;
            },
            /* End of magical code! */

            categoryOptionsList: [
                {

                }
            ]
        }
    ],

Reload Category on save

Reload Category on save?

You can make the dashboard reload the settings on save!

js
    settings: [
        {
            categoryId: 'input',
            categoryName: `New Category`,
            categoryImageURL: 'URL To image',
            categoryDescription: "Setup your bot with default settings!",
            refreshOnSave: true,
            categoryOptionsList: [
                {

                }
            ]
        }
    ],

Released under the MIT License.