[AB-xxx] adding support to use @time inputs for duration and instant command parameters

This commit is contained in:
Sheldan
2026-02-15 22:44:57 +01:00
parent 2f125d0101
commit fa62353aee
7 changed files with 93 additions and 20 deletions

View File

@@ -15,7 +15,7 @@ public class InstantSlashCommandParameterProvider implements SlashCommandParamet
return SlashCommandOptionTypeMapping
.builder()
.type(Instant.class)
.optionTypes(Arrays.asList(OptionType.INTEGER))
.optionTypes(Arrays.asList(OptionType.STRING))
.build();
}
}