From 6d5915fd30aee8e5aa8f1c1ec2e43b908f94d260 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Thu, 13 Jul 2023 21:46:09 +1000 Subject: [PATCH] Remove 2nd useless hotfix entirely then, major bruh. --- src/commands/music.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/commands/music.ts b/src/commands/music.ts index 32afb3b..f12c88d 100644 --- a/src/commands/music.ts +++ b/src/commands/music.ts @@ -31,7 +31,6 @@ export default { play: async()=>{ const url = interaction.options.getString('url'); if (!url.includes('https://open.spotify.com/')) return interaction.reply('Sorry, I can\'t play that. I can only accept Spotify links that contains `https://open.spotify.com/`'); - if (!url.split('').includes('?')) return interaction.reply('To be able to play this song/playlist, you need to remove the `?si=` from the URL or it will basically do nothing.') player.play(interaction.member.voice.channel, url); await interaction.reply(`Added the ${url.includes('playlist/') ? 'playlist' : 'song'} to the queue.`); },