Skip to content

Commit 1338120

Browse files
Adjusted Staff Application Modal Field Lengths
1 parent 846a29a commit 1338120

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/net/javadiscord/javabot/systems/staff_commands/self_roles/SelfRoleInteractionManager.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,18 @@ private void buildStaffApplication(@NotNull ButtonInteractionEvent event, Role r
8282
TextInput age = TextInput.create("age", "Age", TextInputStyle.SHORT)
8383
.setRequired(true)
8484
.setPlaceholder("24")
85+
.setRequiredRange(1, 2)
8586
.build();
8687
TextInput email = TextInput.create("email", "Email", TextInputStyle.SHORT)
8788
.setRequired(true)
8889
.setPlaceholder("moontm@javadiscord.net")
90+
.setMaxLength(254)
8991
.build();
9092
TextInput timezone = TextInput.create("timezone", "Timezone", TextInputStyle.SHORT)
9193
.setRequired(true)
9294
.build();
9395
TextInput extraRemarks = TextInput.create("extra-remarks", "Anything else?", TextInputStyle.PARAGRAPH)
96+
.setMaxLength(MessageEmbed.VALUE_MAX_LENGTH)
9497
.build();
9598
Modal modal = Modal.create(String.format("self-role:staff:%s:%s", role.getId(), applicant.getId()), "Apply for " + role.getName())
9699
.addActionRows(ActionRow.of(name), ActionRow.of(age), ActionRow.of(email), ActionRow.of(timezone), ActionRow.of(extraRemarks))

0 commit comments

Comments
 (0)