From b0742e65adbb7ce6b4b7f94975d51e6c6f55b7bc Mon Sep 17 00:00:00 2001 From: tueem Date: Tue, 15 Oct 2024 17:31:13 +0200 Subject: [PATCH] add definition parameter to wrapper register method --- .../java/net/tomatentum/marinara/wrapper/LibraryWrapper.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/main/java/net/tomatentum/marinara/wrapper/LibraryWrapper.java b/lib/src/main/java/net/tomatentum/marinara/wrapper/LibraryWrapper.java index b85255d..d9a1ecf 100644 --- a/lib/src/main/java/net/tomatentum/marinara/wrapper/LibraryWrapper.java +++ b/lib/src/main/java/net/tomatentum/marinara/wrapper/LibraryWrapper.java @@ -4,6 +4,7 @@ import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; +import net.tomatentum.marinara.interaction.commands.ApplicationCommandDefinition; import net.tomatentum.marinara.interaction.commands.ExecutableCommandDefinition; import net.tomatentum.marinara.interaction.commands.option.OptionType; import net.tomatentum.marinara.interaction.InteractionType; @@ -16,8 +17,8 @@ public abstract class LibraryWrapper { interactionSubscriber = new ArrayList<>(); } - public abstract void registerGlobalCommand(); - public abstract void registerServerCommand(); + public abstract void registerGlobalCommand(ApplicationCommandDefinition def); + public abstract void registerServerCommand(ApplicationCommandDefinition def); public void handleInteraction(Object context) { interactionSubscriber.forEach((o) -> o.accept(context));