From b562349caeb82b6b318f8b6877846e0b3df50c78 Mon Sep 17 00:00:00 2001 From: tueem Date: Tue, 15 Oct 2024 17:43:07 +0200 Subject: [PATCH] merge Global and Server register methods into one --- .../java/net/tomatentum/marinara/wrapper/LibraryWrapper.java | 3 +-- 1 file changed, 1 insertion(+), 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 d9a1ecf..6b3410c 100644 --- a/lib/src/main/java/net/tomatentum/marinara/wrapper/LibraryWrapper.java +++ b/lib/src/main/java/net/tomatentum/marinara/wrapper/LibraryWrapper.java @@ -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));