mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 11:29:33 +00:00 
			
		
		
		
	@@ -12,7 +12,7 @@ module.exports = {
 | 
			
		||||
		if (!radio) {
 | 
			
		||||
			if (!msg.member.voice.channel) return msg.channel.send('<:redx:674263474704220182> I\'m sorry but you need to be in a voice channel to play music!');
 | 
			
		||||
		} else {
 | 
			
		||||
			if (voiceChannel !== radio.voiceChannel) return msg.channel.send('<:redx:674263474704220182> I\'m sorry but you need to be in the same voice channel as Musix to play music!');
 | 
			
		||||
			if (voiceChannel !== radio.voiceChannel) return msg.channel.send('<:redx:674263474704220182> I\'m sorry but you need to be in the same voice channel as RadioX to play music!');
 | 
			
		||||
		}
 | 
			
		||||
		if (!args[1]) return msg.channel.send('<:redx:674263474704220182> You need to use a link or search for a song!');
 | 
			
		||||
		const permissions = voiceChannel.permissionsFor(msg.client.user);
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@ module.exports = {
 | 
			
		||||
		const radio = client.radio.get(msg.guild.id);
 | 
			
		||||
		radio.connection.dispatcher.destroy();
 | 
			
		||||
		radio.voiceChannel.leave();
 | 
			
		||||
		client.radio.delete(guild.id);
 | 
			
		||||
		client.radio.delete(msg.guild.id);
 | 
			
		||||
		msg.channel.send('<:stop:674685626108477519> Stopped the music!');
 | 
			
		||||
	}
 | 
			
		||||
};
 | 
			
		||||
		Reference in New Issue
	
	Block a user