mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 12:09:33 +00:00 
			
		
		
		
	fix
This commit is contained in:
		@@ -15,7 +15,6 @@ module.exports = {
 | 
				
			|||||||
        const embed = new Discord.MessageEmbed()
 | 
					        const embed = new Discord.MessageEmbed()
 | 
				
			||||||
            .setTitle("__Now playing__")
 | 
					            .setTitle("__Now playing__")
 | 
				
			||||||
            .setDescription(`<a:aNotes:674602408105476106>**Now playing:** ${radio.url}\n\`${client.funcs.msToTime(completed, "hh:mm:ss")}\``)
 | 
					            .setDescription(`<a:aNotes:674602408105476106>**Now playing:** ${radio.url}\n\`${client.funcs.msToTime(completed, "hh:mm:ss")}\``)
 | 
				
			||||||
            .setFooter(`Queued by ${radio.songs[0].author.tag}`)
 | 
					 | 
				
			||||||
            .setURL(radio.songs[0].url)
 | 
					            .setURL(radio.songs[0].url)
 | 
				
			||||||
            .setThumbnail(thumbnail._rejectionHandler0)
 | 
					            .setThumbnail(thumbnail._rejectionHandler0)
 | 
				
			||||||
            .setColor(client.config.embedColor)
 | 
					            .setColor(client.config.embedColor)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,18 +0,0 @@
 | 
				
			|||||||
module.exports = {
 | 
					 | 
				
			||||||
	name: 'pause',
 | 
					 | 
				
			||||||
	alias: 'none',
 | 
					 | 
				
			||||||
	usage: '',
 | 
					 | 
				
			||||||
	description: 'Pause the currently playing music.',
 | 
					 | 
				
			||||||
	onlyDev: false,
 | 
					 | 
				
			||||||
	permission: 'MANAGE_MESSAGES',
 | 
					 | 
				
			||||||
	category: 'music',
 | 
					 | 
				
			||||||
	execute(msg, args, client, Discord, prefix, command) {
 | 
					 | 
				
			||||||
		const radio = client.radio.get(msg.guild.id);
 | 
					 | 
				
			||||||
		if (client.funcs.check(client, msg, command)) {
 | 
					 | 
				
			||||||
			if (radio.paused) return msg.channel.send('<:redx:674263474704220182> The music is already paused!');
 | 
					 | 
				
			||||||
			radio.paused = true;
 | 
					 | 
				
			||||||
			radio.connection.dispatcher.pause(true);
 | 
					 | 
				
			||||||
			return msg.channel.send('<:pause:674685548610322462> Paused the music!');
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
@@ -1,18 +0,0 @@
 | 
				
			|||||||
module.exports = {
 | 
					 | 
				
			||||||
	name: 'resume',
 | 
					 | 
				
			||||||
	alias: 'none',
 | 
					 | 
				
			||||||
	usage: '',
 | 
					 | 
				
			||||||
	description: 'Resume the paused music.',
 | 
					 | 
				
			||||||
	onlyDev: false,
 | 
					 | 
				
			||||||
	permission: 'MANAGE_MESSAGES',
 | 
					 | 
				
			||||||
	category: 'music',
 | 
					 | 
				
			||||||
	execute(msg, args, client, Discord, prefix, command) {
 | 
					 | 
				
			||||||
		const radio = client.radio.get(msg.guild.id);
 | 
					 | 
				
			||||||
		if (client.funcs.check(client, msg, command)) {
 | 
					 | 
				
			||||||
			if (!radio.paused) return msg.channel.send('<:redx:674263474704220182> The music in not paused!');
 | 
					 | 
				
			||||||
			radio.paused = false;
 | 
					 | 
				
			||||||
			radio.connection.dispatcher.resume(true);
 | 
					 | 
				
			||||||
			return msg.channel.send('<:resume:674685585478254603> Resumed the music!');
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user