Skip to content

Commit 0a0c877

Browse files
committed
Fix checkstyle errors
1 parent fa3c43e commit 0a0c877

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/main/java/net/discordjug/javabot/systems/staff_commands/forms/FormInteractionManager.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@
4545
@Slf4j
4646
public class FormInteractionManager implements ButtonHandler, ModalHandler {
4747

48-
private static final String SUBMISSION_ERROR_LOG = "A user tried to submit a form \"%s\", but an error occured.";
49-
50-
private static final String SUBMISSION_ERROR_MSG = "We couldn't receive your submission due to an error. Please contact server staff.";
51-
5248
/**
5349
* String representation of the date and time format used in forms.
5450
*/
@@ -63,6 +59,11 @@ public class FormInteractionManager implements ButtonHandler, ModalHandler {
6359
* Component ID used for form buttons and modals.
6460
*/
6561
public static final String FORM_COMPONENT_ID = "modal-form";
62+
63+
private static final String SUBMISSION_ERROR_LOG = "A user tried to submit a form \"%s\", but an error occured.";
64+
65+
private static final String SUBMISSION_ERROR_MSG = "We couldn't receive your submission due to an error. Please contact server staff.";
66+
6667
private static final String FORM_NOT_FOUND_MSG = "This form was not found in the database. Please report this to the server staff.";
6768

6869
private final FormsRepository formsRepo;
@@ -193,8 +194,8 @@ public void editFormMessageButtons(Message msg, Function<Button, Button> editFun
193194
}
194195

195196
/**
196-
* Re-opens the form, re-enabling associated buttons in the message it's attached
197-
* to, if any.
197+
* Re-opens the form, re-enabling associated buttons in the message it's
198+
* attached to, if any.
198199
*
199200
* @param guild guild this form is contained in.
200201
* @param form form to re-open.

src/main/java/net/discordjug/javabot/systems/staff_commands/forms/commands/AddFieldFormSubcommand.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@
1818
import net.dv8tion.jda.api.interactions.commands.OptionType;
1919
import net.dv8tion.jda.api.interactions.commands.build.OptionData;
2020
import net.dv8tion.jda.api.interactions.commands.build.SubcommandData;
21-
import net.dv8tion.jda.api.modals.Modal;
2221
import xyz.dynxsty.dih4jda.interactions.AutoCompletable;
2322

2423
/**
2524
* The `/form add-field` command. This command allows for modification of
2625
* {@link FormData} by adding new fields to it. See
2726
* {@link RemoveFieldFormSubcommand} for the command used to remove fields from
2827
* a form.<br>
29-
* Currently, due to Discord limitations, only {@link Modal#MAX_COMPONENTS} fields are allowed per form.
28+
* Currently, due to Discord limitations, only 5 fields are allowed per form.
3029
* Trying to add more fields will have no effect.
3130
*
3231
* @see FormData

0 commit comments

Comments
 (0)