improve wrapper and general structure #16

Merged
tueem merged 23 commits from improve/structure into dev 2025-03-17 08:26:44 +00:00
Showing only changes of commit f6db113deb - Show all commits

View File

@ -0,0 +1,23 @@
package net.tomatentum.marinara.interaction.commands;
import net.tomatentum.marinara.interaction.commands.annotation.SlashCommandOption;
import net.tomatentum.marinara.interaction.commands.annotation.SubCommand;
import net.tomatentum.marinara.interaction.commands.annotation.SubCommandGroup;
public class CommandConverter<A extends Object> {
private Spec<A, ?, ?> spec;
public A convert(SlashCommandDefinition def) {
return null;
}
public interface Spec<A extends Object, O extends Object, C extends Object> {
public A convertCommand(SlashCommandDefinition def);
public O convertSubCommand(SubCommand def, O[] options);
public O convertSubCommandGroup(SubCommandGroup def, O[] options);
public O convertOption(SlashCommandOption option, C[] choices);
public C[] convertChoice(SlashCommandOption option);
}
}