ODDropdownData interface
under construction
We are still working the API Reference! This page might be incomplete or doesn't contain all details!
Overview
This interface contains the data to build a dropdown.
Properties
channels array ➜ discord.Channel[]
The options when the type is "channel"
channelTypes array ➜ discord-api-types.ChannelType[]
Allowed channel types when the type is "channel"
customId string ➜ string
The custom id of this dropdown
disabled boolean ➜ boolean
Is this dropdown disabled?
maxValues type ➜ null|number
The maximum amount of items to be selected in this dropdown
mentionables array ➜ (discord.User|discord.Role)[]
The options when the type is "mentionable"
minValues type ➜ null|number
The minimum amount of items to be selected in this dropdown
options array ➜ discord.SelectMenuComponentOptionData[]
The options when the type is "string"
placeholder type ➜ null|string
The placeholder of this dropdown
roles array ➜ discord.Role[]
The options when the type is "role"
type type ➜ "string"|"role"|"channel"|"user"|"mentionable"
The type of this dropdown
users array ➜ discord.User[]
The options when the type is "user"