mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-01-06 09:20:17 +00:00
[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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user