Skip to content

Commit

Permalink
fixed logic of isURL
Browse files Browse the repository at this point in the history
  • Loading branch information
RichtXO committed Oct 23, 2024
1 parent db8bcc9 commit 5627ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/richtxo/commands/music/Play.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public Mono<Void> handle(ChatInputInteractionEvent event) {

private boolean isURL(String input){
try {
new URI(input);
new URI(input).toURL();
return true;
} catch (Exception ignored){
return false;
Expand Down

0 comments on commit 5627ca5

Please sign in to comment.