SteamWar/BungeeCore
Archiviert
13
2

Move command setup to the end of the initialization
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <git-5w3l@lixfel.de>
Dieser Commit ist enthalten in:
Lixfel 2024-06-28 15:47:24 +02:00
Ursprung 6232da87b5
Commit e1eb392ffd

Datei anzeigen

@ -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<List<Command>> existingCommands, CommandListUpdateAction updateCommands) {