Fixed order in which commands are loaded
This commit is contained in:
@@ -29,10 +29,10 @@ public class CommandManager extends ListenerAdapter {
|
|||||||
private final HashMap<String, List<ScopeInfo>> commandList = new HashMap<>();
|
private final HashMap<String, List<ScopeInfo>> commandList = new HashMap<>();
|
||||||
|
|
||||||
public CommandManager(JDA jda) {
|
public CommandManager(JDA jda) {
|
||||||
|
loadCommands();
|
||||||
commands = List.of(new CommandHelp(jda, this),
|
commands = List.of(new CommandHelp(jda, this),
|
||||||
new CommandPoll(jda, this),
|
new CommandPoll(jda, this),
|
||||||
new CommandManage(jda, this));
|
new CommandManage(jda, this));
|
||||||
loadCommands();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user