Fixed order in which commands are loaded
This commit is contained in:
parent
6c6c291ff2
commit
e4dfecb7a3
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user