merge Global and Server register methods into one
This commit is contained in:
parent
e38a382a7a
commit
b562349cae
@ -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