Skip to content

Commit bb55df3

Browse files
committed
use addActionRow for adding single ActionRow
1 parent 2a99735 commit bb55df3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/javadiscord/javabot/systems/moderation/report/ReportManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected Modal buildMessageReportModal(@NotNull MessageContextInteractionEvent
110110
.setMaxLength(MessageEmbed.VALUE_MAX_LENGTH)
111111
.build();
112112
return Modal.create(ComponentIdBuilder.build("report", "message", event.getTarget().getId()), title.substring(0, Math.min(title.length(), Modal.MAX_TITLE_LENGTH)))
113-
.addComponents(ActionRow.of(messageInput))
113+
.addActionRow(messageInput)
114114
.build();
115115
}
116116

0 commit comments

Comments
 (0)