Compare commits
No commits in common. "3e50a065a3cf6eb5cfaa05ddd7689d362bf9059b" and "e38a382a7a8539c6f97fc94fb1ff17a0feed3a02" have entirely different histories.
3e50a065a3
...
e38a382a7a
@ -44,8 +44,6 @@ public class InteractionRegistry {
|
||||
else
|
||||
defs.add(new ApplicationCommandDefinition(def.applicationCommand()).addExecutableCommand(def));
|
||||
});
|
||||
|
||||
defs.forEach(wrapper::registerApplicationCommand);
|
||||
}
|
||||
|
||||
public void handle(Object context) {
|
||||
|
@ -17,7 +17,8 @@ public abstract class LibraryWrapper {
|
||||
interactionSubscriber = new ArrayList<>();
|
||||
}
|
||||
|
||||
public abstract void registerApplicationCommand(ApplicationCommandDefinition def);
|
||||
public abstract void registerGlobalCommand(ApplicationCommandDefinition def);
|
||||
public abstract void registerServerCommand(ApplicationCommandDefinition def);
|
||||
|
||||
public void handleInteraction(Object context) {
|
||||
interactionSubscriber.forEach((o) -> o.accept(context));
|
||||
|
Loading…
x
Reference in New Issue
Block a user