edit user feed messages

This commit is contained in:
Lee
2024-06-25 17:20:19 +01:00
parent 4c9e45f06b
commit 0eb28e4dbc
7 changed files with 16 additions and 10 deletions

View File

@ -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
}
}