pub type MentionableSelect = SelectMenu<7>;Expand description
Select menu for picking from users and roles
Aliased Type§
pub struct MentionableSelect {
pub t: TypeField<7>,
pub id: Option<i32>,
pub custom_id: String,
pub options: Option<Vec<SelectOption>>,
pub channel_types: Option<Vec<ChannelType>>,
pub placeholder: Option<String>,
pub min_values: Option<i32>,
pub max_values: Option<i32>,
pub disabled: Option<bool>,
pub required: Option<bool>,
pub default_values: Option<Vec<SelectDefaultValue>>,
}Fields§
§t: TypeField<7>Type of select menu component (text: 3, user: 5, role: 6, mentionable: 7, channels: 8)
id: Option<i32>Identifier unique within the message; Discord numbers components without one
custom_id: StringID for the select menu; max 100 characters
options: Option<Vec<SelectOption>>Specified choices in a select menu (only required and available for string selects (type 3); max 25
channel_types: Option<Vec<ChannelType>>List of channel types to include in the channel select component (type 8)
placeholder: Option<String>Placeholder text if nothing is selected; max 150 characters
min_values: Option<i32>Minimum number of items that must be chosen (defaults to 1); min 0, max 25
max_values: Option<i32>Maximum number of items that can be chosen (defaults to 1); max 25
disabled: Option<bool>Whether select menu is disabled (defaults to false); not allowed in modals
required: Option<bool>In modals: whether a selection is required (defaults to true)
default_values: Option<Vec<SelectDefaultValue>>User, role, mentionable, and channel selects: preselected entities