diff --git a/command/src/main/java/com/jagrosh/jdautilities/command/CommandClient.java b/command/src/main/java/com/jagrosh/jdautilities/command/CommandClient.java index 76627dd5..13fd8ae4 100644 --- a/command/src/main/java/com/jagrosh/jdautilities/command/CommandClient.java +++ b/command/src/main/java/com/jagrosh/jdautilities/command/CommandClient.java @@ -319,6 +319,28 @@ public interface CommandClient */ List getCommands(); + /** + * Returns the list of registered {@link com.jagrosh.jdautilities.command.SlashCommand SlashCommand}s + * during this session. + * + * @return A never-null List of Slash Commands registered during this session + */ + List getSlashCommands(); + + /** + * Returns whether manual upsertion is enabled + * + * @return The manual upsertion status + */ + boolean isManualUpsert(); + + /** + * Returns the forced Guild ID for automatic slash command upserts + * + * @return A possibly-null forcedGuildId set in the builder + */ + String forcedGuildId(); + /** * Gets the time this {@link com.jagrosh.jdautilities.command.CommandClient CommandClient} * implementation was created. diff --git a/command/src/main/java/com/jagrosh/jdautilities/command/impl/CommandClientImpl.java b/command/src/main/java/com/jagrosh/jdautilities/command/impl/CommandClientImpl.java index 52750c85..7df45d6b 100644 --- a/command/src/main/java/com/jagrosh/jdautilities/command/impl/CommandClientImpl.java +++ b/command/src/main/java/com/jagrosh/jdautilities/command/impl/CommandClientImpl.java @@ -221,6 +221,24 @@ public List getCommands() return commands; } + @Override + public List getSlashCommands() + { + return slashCommands; + } + + @Override + public boolean isManualUpsert() + { + return manualUpsert; + } + + @Override + public String forcedGuildId() + { + return forcedGuildId; + } + @Override public OffsetDateTime getStartTime() {