From e1eb392ffda2f23130125ff0206bf0912bf4e89b Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 28 Jun 2024 15:47:24 +0200 Subject: [PATCH] Move command setup to the end of the initialization Signed-off-by: Lixfel --- src/de/steamwar/velocitycore/discord/DiscordBot.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/velocitycore/discord/DiscordBot.java b/src/de/steamwar/velocitycore/discord/DiscordBot.java index e0a8ef7..120ff88 100644 --- a/src/de/steamwar/velocitycore/discord/DiscordBot.java +++ b/src/de/steamwar/velocitycore/discord/DiscordBot.java @@ -170,13 +170,14 @@ public class DiscordBot { } }).repeat(30, TimeUnit.SECONDS).schedule(); - commandSetup(jda.retrieveCommands(), jda.updateCommands()); jda.addEventListener( new DiscordTicketHandler(), new DiscordTeamEvent(), new ChannelListener(), new DiscordSchemUpload() ); + + commandSetup(jda.retrieveCommands(), jda.updateCommands()); } private void commandSetup(RestAction> existingCommands, CommandListUpdateAction updateCommands) {