Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.assistantscenter.com/llms.txt

Use this file to discover all available pages before exploring further.

DBD.formTypes.select(list, disabled),
list
object
required
Available values: { displayName: valueReturned, displayName2: valueReturned2 }
disabled
boolean
required
Indicate if the select should be disabled or not.

Data required for getActualSet function

String, valueReturned value for option actual set.

Data returned

String, valueReturned value for option selected.

Example Usage

{
    optionId: 'lang',
    optionName: "Language",
    optionDescription: "Change bot's language easily",
    optionType: DBD.formTypes.select({"Polish": 'pl', "English": 'en', "French": 'fr'}),
    getActualSet: async ({guild}) => {
        return langsSettings[guild.id] || null;
    },
    setNew: async ({guild,newData}) => {
        langsSettings[guild.id] = newData;
        return;
    }
},