fix: consistency

This commit is contained in:
tueem 2025-02-17 19:55:03 +01:00
parent caeaec1926
commit ca822909e3
Signed by: tueem
GPG Key ID: 65C8667EC17A88FB

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 {