Skip to content

Commit f361875

Browse files
committed
[BotFest] Increase a bunch of modal limits
1 parent 4711b64 commit f361875

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

botfest/src/main/kotlin/net/modfest/botfest/extensions/EventCommands.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,23 +192,23 @@ class EventCommands : Extension(), KordExKoinComponent {
192192
label = Translations.Modal.Register.Name.label
193193
placeholder = Translations.Modal.Register.Name.placeholder
194194
minLength = 2
195-
maxLength = 32
195+
maxLength = 512
196196
required = true
197197
}
198198

199199
val modrinthSlug = lineText {
200200
label = Translations.Modal.Register.Modrinthslug.label
201201
placeholder = Translations.Modal.Register.Modrinthslug.placeholder
202202
minLength = 1
203-
maxLength = 24
203+
maxLength = 512
204204
required = true
205205
}
206206

207207
val pronouns = lineText {
208208
label = Translations.Modal.Register.Pronouns.label
209209
placeholder = Translations.Modal.Register.Pronouns.placeholder
210210
minLength = 1
211-
maxLength = 24
211+
maxLength = 512
212212
required = true
213213
}
214214
}

botfest/src/main/kotlin/net/modfest/botfest/extensions/SubmissionCommands.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ class SubmissionCommands : Extension(), KordExKoinComponent {
753753
label = Translations.Modal.Submit.Url.label
754754
placeholder = Translations.Modal.Submit.Url.placeholder
755755
minLength = 10
756-
maxLength = 128
756+
maxLength = 1024
757757
required = true
758758
}
759759
}
@@ -765,36 +765,36 @@ class SubmissionCommands : Extension(), KordExKoinComponent {
765765
label = Translations.Modal.Submission.Name.label
766766
placeholder = Translations.Modal.Submission.Name.placeholder
767767
minLength = 1
768-
maxLength = 128
768+
maxLength = 1024
769769
required = true
770770
}
771771

772772
val description = lineText {
773773
label = Translations.Modal.Submission.Description.label
774774
placeholder = Translations.Modal.Submission.Description.placeholder
775775
minLength = 1
776-
maxLength = 256
776+
maxLength = 1024
777777
required = true
778778
}
779779

780780
val homepage = lineText {
781781
label = Translations.Modal.Submission.Homepage.label
782782
placeholder = Translations.Modal.Submission.Homepage.placeholder
783-
maxLength = 128
783+
maxLength = 1024
784784
required = false
785785
}
786786

787787
val sourcecode = lineText {
788788
label = Translations.Modal.Submission.Source.extendedlabel
789789
placeholder = Translations.Modal.Submission.Source.placeholder
790-
maxLength = 128
790+
maxLength = 1024
791791
required = false
792792
}
793793

794794
val downloadUrl = lineText {
795795
label = Translations.Modal.Submission.Downloadurl.label
796796
placeholder = Translations.Modal.Submission.Downloadurl.placeholder
797-
maxLength = 128
797+
maxLength = 1024
798798
required = false
799799
}
800800
}

0 commit comments

Comments
 (0)