Compare commits

..

No commits in common. "3e50a065a3cf6eb5cfaa05ddd7689d362bf9059b" and "e38a382a7a8539c6f97fc94fb1ff17a0feed3a02" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View File

@ -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) {

View File

@ -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));