create seperate class for ContextObjectProviders and renamed some context parameters from parameter to context.

First parts of AutocompleteInteraction added
This commit is contained in:
2024-12-15 15:08:34 +01:00
parent f32c7045a1
commit 7a2c15d877
6 changed files with 134 additions and 63 deletions

View File

@@ -0,0 +1,11 @@
package net.tomatentum.marinara.wrapper;
public interface ContextObjectProvider {
public Object convertCommandOption(Object context, String optionName);
public Object getComponentContextObject(Object context, Class<?> type);
public Object getInteractionContextObject(Object context, Class<?> type);
public Object getAutocompleteFocusedOption(Object context);
}