Skip to content

Commit fdd328e

Browse files
committed
Form field javadoc
1 parent 3425fa0 commit fdd328e

File tree

1 file changed

+3
-1
lines changed
  • src/main/java/net/discordjug/javabot/systems/staff_commands/forms/model

1 file changed

+3
-1
lines changed

src/main/java/net/discordjug/javabot/systems/staff_commands/forms/model/FormField.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55

66
/**
77
* Represents a form field.
8+
* Form fields are used to store data about text inputs presented to the user in the form modal.
9+
* Each form can have up to 5 fields.
810
*/
911
public record FormField(String label, int max, int min, String placeholder, boolean required,
1012
TextInputStyle style, String value, long id) {
1113

1214
/**
13-
* Create a standalone text input from this field.
15+
* Create a text input from this field.
1416
*
1517
* @param id ID of this text input.
1618
* @return text input ready to use in a modal.

0 commit comments

Comments
 (0)