mirror of
				https://github.com/musix-org/musix-oss
				synced 2025-11-04 09:49:32 +00:00 
			
		
		
		
	Update exe.js
This commit is contained in:
		@@ -6,10 +6,12 @@ module.exports = function (msg, args, client, Discord, prefix, command) {
 | 
				
			|||||||
        command.uses++;
 | 
					        command.uses++;
 | 
				
			||||||
        command.execute(msg, args, client, Discord, prefix, command);
 | 
					        command.execute(msg, args, client, Discord, prefix, command);
 | 
				
			||||||
    } catch (error) {
 | 
					    } catch (error) {
 | 
				
			||||||
 | 
					        const date = new Date();
 | 
				
			||||||
        msg.reply(`<:redx:674263474704220182> there was an error trying to execute that command! Please contact support with \`${prefix}bug\`!`);
 | 
					        msg.reply(`<:redx:674263474704220182> there was an error trying to execute that command! Please contact support with \`${prefix}bug\`!`);
 | 
				
			||||||
        const embed = new Discord.MessageEmbed()
 | 
					        const embed = new Discord.MessageEmbed()
 | 
				
			||||||
            .setTitle(`Musix ${error.toString()}`)
 | 
					            .setTitle(`Musix ${error.toString()}`)
 | 
				
			||||||
            .setDescription(error.stack.replace(/at /g, '**at **'))
 | 
					            .setDescription(error.stack.replace(/at /g, '**at **'))
 | 
				
			||||||
 | 
					            .setFooter(`guild: ${msg.guild.id}, user: ${msg.member.id}, channel: ${msg.channel.id}, date: ${date}`)
 | 
				
			||||||
            .setColor('#b50002');
 | 
					            .setColor('#b50002');
 | 
				
			||||||
        client.debug_channel.send(embed);
 | 
					        client.debug_channel.send(embed);
 | 
				
			||||||
        console.error(error);
 | 
					        console.error(error);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user