merge Global and Server register methods into one

This commit is contained in:
tueem 2024-10-15 17:43:07 +02:00
parent e38a382a7a
commit b562349cae
No known key found for this signature in database
GPG Key ID: 4B2F166FCDCC96C6

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