|
|
@ -113,7 +113,7 @@ public class SlashCommandLoader implements CommandLoader {
|
|
|
|
if (slashCommand != null) {
|
|
|
|
if (slashCommand != null) {
|
|
|
|
String name = slashCommand.stringValue("name").orElseThrow();
|
|
|
|
String name = slashCommand.stringValue("name").orElseThrow();
|
|
|
|
String description = slashCommand.stringValue("description").orElseThrow();
|
|
|
|
String description = slashCommand.stringValue("description").orElseThrow();
|
|
|
|
boolean isVisible = slashCommand.booleanValue("isVisible").orElseThrow();
|
|
|
|
boolean isVisible = slashCommand.booleanValue("isVisible").orElse(true);
|
|
|
|
String[] subCommandGroups = slashCommand.stringValues("subCommandGroups");
|
|
|
|
String[] subCommandGroups = slashCommand.stringValues("subCommandGroups");
|
|
|
|
|
|
|
|
|
|
|
|
CommandData commandData = new CommandData(name, description).setDefaultEnabled(isVisible);
|
|
|
|
CommandData commandData = new CommandData(name, description).setDefaultEnabled(isVisible);
|
|
|
|