Code:
let components = vec![Component::ActionRow(ActionRow {
components: vec![
twilight_model::channel::message::Component::TextInput(TextInput {
custom_id: format!("verify-1-{}", 1),
label: "some-text".to_string(),
max_length: Some(1),
min_length: Some(1),
placeholder: Some("J/N".to_string()),
required: Some(true),
style: TextInputStyle::Short,
value: None,
}),
twilight_model::channel::message::Component::TextInput(TextInput {
custom_id: format!("verify-2-{}", 2),
label: "some-text"
.to_string(),
max_length: Some(1),
min_length: Some(1),
placeholder: Some("J/N".to_string()),
required: Some(true),
style: TextInputStyle::Short,
value: None,
}),
],
})];
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.