@@ -76,7 +76,7 @@ public void closeForm(Guild guild, FormData form) {
7676 long messageId = info .messageId ();
7777 MessageChannel formChannel = guild .getJDA ().getChannelById (MessageChannel .class , messageChannelId );
7878 formChannel .retrieveMessageById (messageId ).queue (msg -> {
79- mapFormMessageButtons (msg , btn -> {
79+ editFormMessageButtons (msg , btn -> {
8080 String cptId = btn .getCustomId ();
8181 String [] split = ComponentIdBuilder .split (cptId );
8282 if (split [0 ].equals (FormInteractionManager .FORM_COMPONENT_ID )
@@ -156,15 +156,15 @@ public void handleModal(ModalInteractionEvent event, List<ModalMapping> values)
156156 /**
157157 * Modifies buttons in a message using given function for mapping.
158158 *
159- * @param msg message to modify buttons in.
160- * @param mapper mapping function.
159+ * @param msg message to modify buttons in.
160+ * @param editFunction function to edit the buttons .
161161 */
162- public void mapFormMessageButtons (Message msg , Function <Button , Button > mapper ) {
162+ public void editFormMessageButtons (Message msg , Function <Button , Button > editFunction ) {
163163 List <ActionRow > components = msg .getComponents ().stream ().map (messageComponent -> {
164164 ActionRow row = messageComponent .asActionRow ();
165165 List <ActionRowChildComponent > cpts = row .getComponents ().stream ().map (cpt -> {
166166 if (cpt instanceof Button btn ) {
167- return mapper .apply (btn );
167+ return editFunction .apply (btn );
168168 }
169169 return cpt ;
170170 }).toList ();
@@ -191,7 +191,7 @@ public void reopenForm(Guild guild, FormData form) {
191191 long messageId = info .messageId ();
192192 TextChannel formChannel = guild .getTextChannelById (messageChannelId );
193193 formChannel .retrieveMessageById (messageId ).queue (msg -> {
194- mapFormMessageButtons (msg , btn -> {
194+ editFormMessageButtons (msg , btn -> {
195195 String cptId = btn .getCustomId ();
196196 String [] split = ComponentIdBuilder .split (cptId );
197197 if (split [0 ].equals (FormInteractionManager .FORM_COMPONENT_ID )
0 commit comments