Skip to main content

twilight_model/application/interaction/modal/
checkbox_group.rs

1/// User filled in [`CheckboxGroup`].
2///
3/// See [Discord Docs/File Upload Interaction Response Structure]
4///
5/// [`CheckboxGroup`]: crate::channel::message::component::CheckboxGroup
6/// [Discord Docs/File Upload Interaction Response Structure]: https://discord.com/developers/docs/components/reference#checkbox-group-checkbox-group-interaction-response-structure
7#[derive(Clone, Debug, Eq, PartialEq)]
8pub struct ModalInteractionCheckboxGroup {
9    /// [Discord Docs/Custom ID]: https://discord.com/developers/docs/components/reference#anatomy-of-a-component-custom-id
10    pub custom_id: String,
11    /// User defined identifier for the component.
12    ///
13    /// See [Discord Docs/Custom ID].
14    ///
15    /// Unique identifier for the component.
16    pub id: i32,
17    /// Value submitted by the user.
18    pub values: Vec<String>,
19}