Form Types
Channels Select
DBD.formTypes.channelsSelect(disabled, channelTypes = [ChannelType.GuildText], hideNSW, onlyNSFW, hideNoAccess),),
disabled
boolean
requiredIndicate if the select should be disabled or not.
channelTypes
array
requiredTypes of channels that should be included in the select.
hideNSW
boolean
Indicate if the NSFW channels should be hidden or not.
onlyNSFW
boolean
Indicate if the only NSFW channels should be shown or not.
hideNoAccess
boolean
Indicate if the no access channels should be hidden or not.
Data required for getActualSet function
String, channel ID.
Data returned
String, channel ID | or null.
Example Usage
{
optionId: 'welcome_channel',
optionName: "Welcome channel",
optionDescription: "Select welcome message channel on this guild.",
optionType: DBD.formTypes.channelsSelect(false, [ChannelType.GuildText]),
getActualSet: async ({guild}) => {
return welcomeChannel[guild.id];
},
setNew: async ({guild,newData}) => {
welcomeChannel[guild.id] = newData;
return;
}
},
Was this page helpful?