fix: consistency

This commit is contained in:
2025-02-17 19:55:03 +01:00
parent caeaec1926
commit ca822909e3

View File

@@ -67,7 +67,7 @@ public record EnumChoices(Class<? extends Enum<?>> enumClass, ChoiceType type, S
return null; return null;
} }
} }
return choices.toArray(new SlashCommandOptionChoice[0]); return choices.toArray(SlashCommandOptionChoice[]::new);
} }
public static enum ChoiceType { public static enum ChoiceType {