Skip to content

Commit

Permalink
fix boolean types causing errors with autocompletion in JDA
Browse files Browse the repository at this point in the history
  • Loading branch information
Revxrsal committed Jan 25, 2025
1 parent 6d6383a commit f503e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jda/src/main/java/revxrsal/commands/jda/JDAUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ private JDAUtils() {
parameter.description() == null ? parameter.name() : parameter.description()
);
data.setRequired(parameter.isRequired());
if (!parameter.suggestions().equals(SuggestionProvider.empty()))
if (parameter.type() != boolean.class && !parameter.suggestions().equals(SuggestionProvider.empty()))
data.setAutoComplete(true);
setParameterRange(data, parameter);
Length length = parameter.annotations().get(Length.class);
Expand Down

0 comments on commit f503e54

Please sign in to comment.