fancydialogs: One title is enough

This commit is contained in:
Oliver
2025-06-17 17:53:15 +02:00
parent 8ffe3f824c
commit 96ae8814dc
5 changed files with 1 additions and 6 deletions

View File

@@ -27,7 +27,6 @@ public class ConfirmationDialog {
this.dialogData = new DialogData(
"confirmation_dialog_" + UUID.randomUUID(),
this.title,
this.title,
false,
List.of(
new DialogBodyData(this.question)

View File

@@ -21,7 +21,6 @@ public class NoticeDialog {
this.dialogData = new DialogData(
"notice_dialog_" + UUID.randomUUID(),
this.title,
this.title,
true,
List.of(
new DialogBodyData(this.text)

View File

@@ -1,14 +1,12 @@
package com.fancyinnovations.fancydialogs.api.data;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.List;
public record DialogData(
@NotNull String id,
@NotNull String title,
@Nullable String externalTitle,
boolean canCloseWithEscape,
@NotNull List<DialogBodyData> body,
@NotNull List<DialogButton> buttons