Skip to main content

ModalInteractionChannelSelect

Type Alias ModalInteractionChannelSelect 

Source
pub type ModalInteractionChannelSelect = ModalInteractionSelectMenu<Id<ChannelMarker>>;
Expand description

Aliased Type§

pub struct ModalInteractionChannelSelect {
    pub id: i32,
    pub custom_id: String,
    pub values: Vec<Id<ChannelMarker>>,
}

Fields§

§id: i32

Unique identifier for the component.

§custom_id: String

User defined identifier for the component.

See Discord Docs/Custom ID.

§values: Vec<Id<ChannelMarker>>

The selected values.

Trait Implementations§

Source§

impl TryFrom<ModalInteractionComponent> for ModalInteractionChannelSelect

Source§

type Error = ModalInteractionComponent

The type returned in the event of a conversion error.
Source§

fn try_from(value: ModalInteractionComponent) -> Result<Self, Self::Error>

Performs the conversion.