move Choice classes
This commit is contained in:
		| @@ -6,6 +6,7 @@ import net.tomatentum.marinara.interaction.commands.annotation.SlashCommandOptio | |||||||
| import net.tomatentum.marinara.interaction.commands.annotation.SubCommand; | import net.tomatentum.marinara.interaction.commands.annotation.SubCommand; | ||||||
| import net.tomatentum.marinara.interaction.commands.annotation.SubCommandGroup; | import net.tomatentum.marinara.interaction.commands.annotation.SubCommandGroup; | ||||||
| import net.tomatentum.marinara.interaction.commands.annotation.SlashCommandOption.PlaceHolderEnum; | import net.tomatentum.marinara.interaction.commands.annotation.SlashCommandOption.PlaceHolderEnum; | ||||||
|  | import net.tomatentum.marinara.interaction.commands.choice.EnumChoices; | ||||||
|  |  | ||||||
| public record ExecutableSlashCommandDefinition( | public record ExecutableSlashCommandDefinition( | ||||||
|     SlashCommand applicationCommand, |     SlashCommand applicationCommand, | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| package net.tomatentum.marinara.interaction.commands; | package net.tomatentum.marinara.interaction.commands.choice; | ||||||
| 
 | 
 | ||||||
| public interface ChoiceValueProvider<T> { | public interface ChoiceValueProvider<T> { | ||||||
|     T getChoiceValue(); |     T getChoiceValue(); | ||||||
| @@ -1,4 +1,4 @@ | |||||||
| package net.tomatentum.marinara.interaction.commands; | package net.tomatentum.marinara.interaction.commands.choice; | ||||||
| 
 | 
 | ||||||
| import java.lang.reflect.InvocationTargetException; | import java.lang.reflect.InvocationTargetException; | ||||||
| import java.lang.reflect.Method; | import java.lang.reflect.Method; | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| package net.tomatentum.marinara.test.discord4j; | package net.tomatentum.marinara.test.discord4j; | ||||||
|  |  | ||||||
| import net.tomatentum.marinara.interaction.commands.ChoiceValueProvider; | import net.tomatentum.marinara.interaction.commands.choice.ChoiceValueProvider; | ||||||
|  |  | ||||||
| public enum TestChoiceEnum implements ChoiceValueProvider<String> { | public enum TestChoiceEnum implements ChoiceValueProvider<String> { | ||||||
|     TestValue("testValue"), |     TestValue("testValue"), | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| package net.tomatentum.marinara.test.javacord; | package net.tomatentum.marinara.test.javacord; | ||||||
|  |  | ||||||
| import net.tomatentum.marinara.interaction.commands.ChoiceValueProvider; | import net.tomatentum.marinara.interaction.commands.choice.ChoiceValueProvider; | ||||||
|  |  | ||||||
| public enum TestChoiceEnum implements ChoiceValueProvider<String> { | public enum TestChoiceEnum implements ChoiceValueProvider<String> { | ||||||
|     TestValue("testValue"), |     TestValue("testValue"), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user