Move command setup to the end of the initialization
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Signed-off-by: Lixfel <git-5w3l@lixfel.de>
Dieser Commit ist enthalten in:
Ursprung
6232da87b5
Commit
e1eb392ffd
@ -170,13 +170,14 @@ public class DiscordBot {
|
|||||||
}
|
}
|
||||||
}).repeat(30, TimeUnit.SECONDS).schedule();
|
}).repeat(30, TimeUnit.SECONDS).schedule();
|
||||||
|
|
||||||
commandSetup(jda.retrieveCommands(), jda.updateCommands());
|
|
||||||
jda.addEventListener(
|
jda.addEventListener(
|
||||||
new DiscordTicketHandler(),
|
new DiscordTicketHandler(),
|
||||||
new DiscordTeamEvent(),
|
new DiscordTeamEvent(),
|
||||||
new ChannelListener(),
|
new ChannelListener(),
|
||||||
new DiscordSchemUpload()
|
new DiscordSchemUpload()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
commandSetup(jda.retrieveCommands(), jda.updateCommands());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void commandSetup(RestAction<List<Command>> existingCommands, CommandListUpdateAction updateCommands) {
|
private void commandSetup(RestAction<List<Command>> existingCommands, CommandListUpdateAction updateCommands) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren