add option ranges #20
| @@ -0,0 +1,6 @@ | |||||||
|  | package net.tomatentum.marinara.interaction.commands.annotation; | ||||||
|  |  | ||||||
|  | public @interface Range { | ||||||
|  |     public double min() default Double.MIN_VALUE; | ||||||
|  |     public double max() default Double.MAX_VALUE; | ||||||
|  | } | ||||||
| @@ -15,6 +15,7 @@ public @interface SlashCommandOption { | |||||||
|     public SlashCommandOptionType type() default SlashCommandOptionType.STRING; |     public SlashCommandOptionType type() default SlashCommandOptionType.STRING; | ||||||
|     public boolean required() default false; |     public boolean required() default false; | ||||||
|     public boolean autocomplete() default false; |     public boolean autocomplete() default false; | ||||||
|  |     public Range range() default @Range; | ||||||
|     public CommandChoices choices() default @CommandChoices; |     public CommandChoices choices() default @CommandChoices; | ||||||
|  |  | ||||||
|     public static enum PlaceHolderEnum { |     public static enum PlaceHolderEnum { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user