From 31f7f8067562f38636ece640f64e4090999b97c4 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Fri, 28 Jul 2023 09:37:19 +0700 Subject: [PATCH] FIX --- .../chipmunk/chayapak/chomens_bot/commands/MusicCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java index d40e8ba..3b10c54 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java @@ -122,7 +122,7 @@ false } } catch (MalformedURLException e) { return Component.text("Invalid URL").color(NamedTextColor.RED); - } catch (ArrayIndexOutOfBoundsException e) { + } catch (IndexOutOfBoundsException e) { return Component.text("Song not found").color(NamedTextColor.RED); } catch (Exception e) { return Component.text(e.toString()).color(NamedTextColor.RED);