[AB-xxx] enabling commands which take users to only require one parameter instead of a string and a member option

This commit is contained in:
Sheldan
2025-07-29 23:04:33 +02:00
parent 433fdb7068
commit ef4bdb2ab2
4 changed files with 16 additions and 39 deletions

View File

@@ -16,7 +16,7 @@ public class UserSlashCommandParameterProvider implements SlashCommandParameterP
return SlashCommandOptionTypeMapping
.builder()
.type(User.class)
.optionTypes(Arrays.asList(OptionType.USER, OptionType.STRING))
.optionTypes(Arrays.asList(OptionType.USER))
.strictTypes(List.of(OptionType.USER))
.build();
}