From 02627ab732b896259313e9a9bc9af1dc8ffb2ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Tue, 20 Dec 2022 14:53:58 +0100 Subject: [PATCH] Add javadoc comment --- src/main/java/wtf/beatrice/hidekobot/util/CommandUtil.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/wtf/beatrice/hidekobot/util/CommandUtil.java b/src/main/java/wtf/beatrice/hidekobot/util/CommandUtil.java index 990b3fa..091c667 100644 --- a/src/main/java/wtf/beatrice/hidekobot/util/CommandUtil.java +++ b/src/main/java/wtf/beatrice/hidekobot/util/CommandUtil.java @@ -36,6 +36,13 @@ public class CommandUtil } + /** + * Method to update slash commands registered on Discord's side. + * It runs automatically every time the bot starts, but only updates the commands in case differences + * are found, unless forced. + * + * @param force a boolean specifying if the update should be forced even if no differences were found. + */ public static void updateSlashCommands(boolean force) {