fix: consistency
This commit is contained in:
parent
caeaec1926
commit
ca822909e3
@ -67,7 +67,7 @@ public record EnumChoices(Class<? extends Enum<?>> enumClass, ChoiceType type, S
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return choices.toArray(new SlashCommandOptionChoice[0]);
|
||||
return choices.toArray(SlashCommandOptionChoice[]::new);
|
||||
}
|
||||
|
||||
public static enum ChoiceType {
|
||||
|
Loading…
x
Reference in New Issue
Block a user