forked from Fascinated/Bat
edit user feed messages
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package cc.fascinated.bat.service;
|
||||
|
||||
import cc.fascinated.bat.command.BatCommand;
|
||||
import cc.fascinated.bat.features.Feature;
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
||||
@ -31,6 +32,12 @@ public class FeatureService {
|
||||
features.add(context.getBean(feature.getClass()));
|
||||
});
|
||||
|
||||
context.getBeansOfType(BatCommand.class)
|
||||
.values()
|
||||
.forEach((command) -> {
|
||||
commandService.registerCommand(context.getBean(command.getClass()));
|
||||
});
|
||||
|
||||
commandService.registerSlashCommands(); // Register all slash commands
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user