Skip to content

Commit fa3c43e

Browse files
committed
Rename createFormModal
1 parent 23a38e8 commit fa3c43e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public void handleButton(ButtonInteractionEvent event, Button button) {
117117
return;
118118
}
119119

120-
Modal modal = createFormModal(form);
120+
Modal modal = createSubmissionModal(form);
121121

122122
event.replyModal(modal).queue();
123123
}
@@ -226,7 +226,7 @@ public void reopenForm(Guild guild, FormData form) {
226226
* @param form form to open submission modal for.
227227
* @return submission modal to be presented to the user.
228228
*/
229-
public static Modal createFormModal(FormData form) {
229+
public static Modal createSubmissionModal(FormData form) {
230230
Modal modal = Modal.create(ComponentIdBuilder.build(FORM_COMPONENT_ID, form.id()), form.title())
231231
.addComponents(form.createComponents()).build();
232232
return modal;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void execute(SlashCommandInteractionEvent event) {
5252
event.reply("You can't open a form with no fields").setEphemeral(true).queue();
5353
return;
5454
}
55-
event.replyModal(FormInteractionManager.createFormModal(form)).queue();
55+
event.replyModal(FormInteractionManager.createSubmissionModal(form)).queue();
5656
}
5757

5858
@Override

0 commit comments

Comments
 (0)