Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added subcommands #16

Open
wants to merge 2 commits into
base: v5.0.0
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Checked for verbose on log of successful guild command upsert
PillageDev committed May 1, 2024
commit 5cf06b4f56c5997c8c1df85ae15870c6e4732b7a
Original file line number Diff line number Diff line change
@@ -138,7 +138,9 @@ public void registerSlashCommand(SlashBox box) {
Guild guild = api.getGuildById(guildId);
if (guild != null) {
guild.upsertCommand(commandData).queue();
Kogger.info("The SlashCommand that named as '" + name + "' is upserted as a guild command for guild '" + guildId + "'");
if (KCommando.verbose) {
Kogger.info("The SlashCommand that named as '" + name + "' is upserted as a guild command for guild '" + guildId + "'");
}
} else {
if (KCommando.verbose) {
Kogger.warn("Guild not found for Slash Command named as " + name);