|
|
@ -112,7 +112,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").orElse("No Description");
|
|
|
|
boolean isVisible = slashCommand.booleanValue("isVisible").orElse(true);
|
|
|
|
boolean isVisible = slashCommand.booleanValue("isVisible").orElse(true);
|
|
|
|
String[] subCommandGroups = slashCommand.stringValues("subCommandGroups");
|
|
|
|
String[] subCommandGroups = slashCommand.stringValues("subCommandGroups");
|
|
|
|
|
|
|
|
|
|
|
|