info:"Refresh all client commands and events and clear most of the require cache.",
syntax:'`reload`',
asyncexecute(client,message,args,cmd){
if(!client.config.developers.has(message.author.id)){returnmessage.channel.send(`You must be a ${client.config.bot.name} developer in order to do this!`);}
asyncrun(client,message,args,cmd){
if(!client.config.developers.includes(message.author.id)){returnmessage.channel.send(`You must be a ${client.config.bot.name} developer in order to do this!`);}
returnmessage.channel.send(`Done! Reloaded **${client.commands.size}** commands with **${client.aliases.size}** aliases in **${newDate().getTime()-timer}ms**`)
if(conflictingAliases[alias]){conflictingAliases[alias].push(command.name);}//object of alias conflictions keyed by alias -> array[command names]
if(conflictingAliases[alias]){conflictingAliases[alias].push(command.name);}//object of alias conflicts keyed by alias -> array[command names]
else{conflictingAliases[alias]=[command.name];}
}
client.aliases.set(alias,command.name);
});}
client.log(`Loaded ${chalk.white(command.name)} with ${chalk.white(`${command.aliases?command.aliases.length:0}`)} alias${command.aliases&&command.aliases.length===1?'':'es'}.`,{color:'blueBright',source:'boot',sourceColor:'blue'});
if(!silent){client.log(`Loaded ${chalk.white(command.name)} with ${chalk.white(`${command.aliases?command.aliases.length:0}`)} alias${command.aliases&&command.aliases.length===1?'':'es'}.`,{color:'blueBright',source:'boot',sourceColor:'blue'});}
}
catch(e){
client.error(`Failed to read file ${chalk.white(file)}`);