1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-12-25 23:15:38 -05:00

Remove 2nd useless hotfix entirely then, major bruh.

This commit is contained in:
AnxietyisReal 2023-07-13 21:46:09 +10:00
parent 356df15e5c
commit 6d5915fd30

View File

@ -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=<random string of letters>` 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.`);
},