add option ranges #20

Merged
tueem merged 2 commits from feat/option-ranges into dev 2025-03-22 18:42:28 +00:00
2 changed files with 7 additions and 0 deletions
Showing only changes of commit d2eec8b07c - Show all commits

View File

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

View File

@ -15,6 +15,7 @@ public @interface SlashCommandOption {
public SlashCommandOptionType type() default SlashCommandOptionType.STRING;
public boolean required() default false;
public boolean autocomplete() default false;
public Range range() default @Range;
public CommandChoices choices() default @CommandChoices;
public static enum PlaceHolderEnum {