Skip to content

Commit

Permalink
fix modal defaultValue not being set
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaktushose committed Apr 29, 2024
1 parent de3da2e commit da36e41
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public net.dv8tion.jda.api.interactions.components.text.TextInput toTextInput()
if (!placeholder.isBlank()) {
textInput.setPlaceholder(placeholder);
}
if (!placeholder.isBlank()) {
if (!defaultValue.isBlank()) {
textInput.setValue(defaultValue);
}

Expand Down

0 comments on commit da36e41

Please sign in to comment.