twilight-model 0.17.1

Discord API models for the Twilight ecosystem.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::application::interaction::modal::ModalInteractionComponent;

/// User filled in [`Label`].
///
/// See [Discord Docs/Label Interaction Response Structure].
///
/// [`Label`]: crate::channel::message::component::Label
/// [Discord Docs/Label Interaction Response Structure]: https://discord.com/developers/docs/components/reference#label-label-interaction-response-structure
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct ModalInteractionLabel {
    /// Unique identifier for the component.
    pub id: i32,
    /// Child component within the label.
    pub component: Box<ModalInteractionComponent>,
}