if(!client.isStaff(interaction.member)&&!client.config.whitelist.includes(interaction.member.id))returninteraction.reply('This command is in early stages of development, some parts may be missing or broken.\nIt has been restricted to staff for time-being.');
if(!voiceCh)returninteraction.reply('Please join a voice channel first to use the command.');
player.nodes.create(interaction.guildId,{
metadata:{
channel: interaction.channel,
client: interaction.guild.members.me,
requestedBy: interaction.member
},
selfDeaf: true,
volume: 75,
skipOnNoStream: true,
leaveOnEnd: false,
leaveOnEmpty: false,
bufferingTimeout: 30000,
connectionTimeout: 25000,
strategy:'FIFO'
});
({
play: async()=>{
consturl=interaction.options.getString('url');
if(!url.includes('https://open.spotify.com/'))returninteraction.reply('Sorry, I can\'t play that. I can only accept Spotify links that contains `https://open.spotify.com/`');