DBD.formTypes.rolesSelect(disabled, includeBots, hideHigherRoles),
disabled
boolean
required

Indicate if the select should be disabled or not.

includeBots
boolean

Indicate if the bot roles should be included or not.

hideHigherRoles
boolean

Indicate if the higher roles should be hidden or not.

Data required for getActualSet function

String, role ID.

Data returned

String, role ID | or null.

Example Usage

{
    optionId: 'welcome_role',
    optionName: "Welcome role",
    optionDescription: "Select role given to user on guild join.",
    optionType: DBD.formTypes.rolesSelect(false),
    getActualSet: async ({guild}) => {
        return welcomeRole[guild.id];
    },
    setNew: async ({guild,newData}) => {
        welcomeRole[guild.id] = newData;
        return;
    }
},