new DBD.Dashboard({
useCategorySet: Boolean,
});
new DBD.Dashboard({
useCategorySet: true,
});
By enabling this, you must make some changes to your settings.
settings: [
{
categoryId: 'setup',
categoryName: "Setup",
categoryDescription: "Setup your bot with default settings!",
getActualSet: async ({guild}) => {
return [
{
optionId: "lang",
data: langsSettings[guild.id] || null
}
]
},
setNew: async ({ guild, newData }) => {
for(const option of newData) {
if(option.optionId === "lang") langsSettings[guild.id] = option.data;
}
return;
},
categoryOptionsList: [
{
optionId: 'lang',
optionName: "Language",
optionDescription: "Change bot's language easily",
optionType: DBD.formTypes.select({"Polish": 'pl', "English": 'en', "French": 'fr'})
},
]
},
],