add definition parameter to wrapper register method

This commit is contained in:
tueem 2024-10-15 17:31:13 +02:00
parent 410b299ad6
commit b0742e65ad
No known key found for this signature in database
GPG Key ID: 4B2F166FCDCC96C6

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