Compare commits
No commits in common. "cf45d0e8ea920545646238d8eeaaaf2381816946" and "0c9d8ecb538076e0c4c1b127ba5327cc8f8839f1" have entirely different histories.
cf45d0e8ea
...
0c9d8ecb53
@ -45,7 +45,7 @@ public class InteractionRegistry {
|
||||
defs.add(new ApplicationCommandDefinition(def.applicationCommand()).addExecutableCommand(def));
|
||||
});
|
||||
|
||||
wrapper.registerApplicationCommands(defs.toArray(new ApplicationCommandDefinition[0]));
|
||||
defs.forEach(wrapper::registerApplicationCommand);
|
||||
}
|
||||
|
||||
public void handle(Object context) {
|
||||
|
@ -17,7 +17,7 @@ public abstract class LibraryWrapper {
|
||||
interactionSubscriber = new ArrayList<>();
|
||||
}
|
||||
|
||||
public abstract void registerApplicationCommands(ApplicationCommandDefinition[] defs);
|
||||
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