From 668489ce7f92abe1f58bc205183119f2fbd97b69 Mon Sep 17 00:00:00 2001 From: Kaktushose <42280757+Kaktushose@users.noreply.github.com> Date: Sun, 8 Oct 2023 15:42:50 +0200 Subject: [PATCH] fix createCopy not copying default values (#2556) --- .../api/interactions/components/selections/EntitySelectMenu.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/dv8tion/jda/api/interactions/components/selections/EntitySelectMenu.java b/src/main/java/net/dv8tion/jda/api/interactions/components/selections/EntitySelectMenu.java index d93f005a8c..397732097f 100644 --- a/src/main/java/net/dv8tion/jda/api/interactions/components/selections/EntitySelectMenu.java +++ b/src/main/java/net/dv8tion/jda/api/interactions/components/selections/EntitySelectMenu.java @@ -143,6 +143,7 @@ default Builder createCopy() builder.setRequiredRange(getMinValues(), getMaxValues()); builder.setPlaceholder(getPlaceholder()); builder.setDisabled(isDisabled()); + builder.setDefaultValues(getDefaultValues()); return builder; }