if(command === `${prefix}rename`) {
let embed = new Discord.RichEmbed()
.setColor("#1bc643")
.setTitle("---")
.addField("Created At", message.author.createdAt)
.setDescription("SYSTEM");
message.channel.sendMessage(embed);
channel.setName('')
.then(newChannel => console.log(`Channel's new name is ${newChannel.name}`)).catch(console.error);
return;
}
-> Ошибка синтаксического анализа: «возврат» вне функции