Compare commits
2 Commits
e38a382a7a
...
3e50a065a3
Author | SHA1 | Date | |
---|---|---|---|
3e50a065a3 | |||
b562349cae |
@ -44,6 +44,8 @@ public class InteractionRegistry {
|
||||
else
|
||||
defs.add(new ApplicationCommandDefinition(def.applicationCommand()).addExecutableCommand(def));
|
||||
});
|
||||
|
||||
defs.forEach(wrapper::registerApplicationCommand);
|
||||
}
|
||||
|
||||
public void handle(Object context) {
|
||||
|
@ -17,8 +17,7 @@ public abstract class LibraryWrapper {
|
||||
interactionSubscriber = new ArrayList<>();
|
||||
}
|
||||
|
||||
public abstract void registerGlobalCommand(ApplicationCommandDefinition def);
|
||||
public abstract void registerServerCommand(ApplicationCommandDefinition def);
|
||||
public abstract void registerApplicationCommand(ApplicationCommandDefinition def);
|
||||
|
||||
public void handleInteraction(Object context) {
|
||||
interactionSubscriber.forEach((o) -> o.accept(context));
|
||||
|
Loading…
x
Reference in New Issue
Block a user