@@ -170,7 +170,7 @@ public void handleModal(@NotNull ModalInteractionEvent event, @NotNull List<Moda
170170 .setRequired (false )
171171 .build ();
172172 return Modal .create (ComponentIdBuilder .build (EDIT_EMBED_ID , AUTHOR_ID , messageId ), "Edit Author" )
173- .addActionRows (ActionRow .of (authorNameInput ), ActionRow .of (authorUrlInput ), ActionRow .of (authorIconUrlInput ))
173+ .addComponents (ActionRow .of (authorNameInput ), ActionRow .of (authorUrlInput ), ActionRow .of (authorIconUrlInput ))
174174 .build ();
175175 }
176176
@@ -199,7 +199,7 @@ public void handleModal(@NotNull ModalInteractionEvent event, @NotNull List<Moda
199199 .setRequired (false )
200200 .build ();
201201 return Modal .create (ComponentIdBuilder .build (EDIT_EMBED_ID , TITLE_DESC_COLOR_ID , messageId ), "Edit Title, Title URL, Description & Color" )
202- .addActionRows (ActionRow .of (titleInput ), ActionRow .of (titleUrlInput ), ActionRow .of (descriptionInput ), ActionRow .of (colorInput ))
202+ .addComponents (ActionRow .of (titleInput ), ActionRow .of (titleUrlInput ), ActionRow .of (descriptionInput ), ActionRow .of (colorInput ))
203203 .build ();
204204 }
205205
@@ -217,7 +217,7 @@ public void handleModal(@NotNull ModalInteractionEvent event, @NotNull List<Moda
217217 .setRequired (false )
218218 .build ();
219219 return Modal .create (ComponentIdBuilder .build (EDIT_EMBED_ID , IMG_THUMB_ID , messageId ), "Edit Image & Thumbnail" )
220- .addActionRows (ActionRow .of (imageUrlInput ), ActionRow .of (thumbnailUrlInput ))
220+ .addComponents (ActionRow .of (imageUrlInput ), ActionRow .of (thumbnailUrlInput ))
221221 .build ();
222222 }
223223
@@ -241,7 +241,7 @@ public void handleModal(@NotNull ModalInteractionEvent event, @NotNull List<Moda
241241 .setRequired (false )
242242 .build ();
243243 return Modal .create (ComponentIdBuilder .build (EDIT_EMBED_ID , FOOTER_TIMESTAMP_ID , messageId ), "Edit Footer & Timestamp" )
244- .addActionRows (ActionRow .of (footerTextInput ), ActionRow .of (footerIconUrlInput ), ActionRow .of (timestampInput ))
244+ .addComponents (ActionRow .of (footerTextInput ), ActionRow .of (footerIconUrlInput ), ActionRow .of (timestampInput ))
245245 .build ();
246246 }
247247
0 commit comments