title: TypeError: Cannot read property 'RichEmbed' of undefined
body: <p>I've Been Searching For A Solutions For This Error But Until Now I Didn't Found Any Solutions And Now Took More Than 2 Days To Find A Solution So I Published My Problem Here So Anybody Can See It And Comment Why The Error Shows ?</p>
  
  <p><strong>The Problem :</strong> <code>TypeError: Cannot read property 'RichEmbed' of undefined(18:35)</code></p>
  
  <p><strong>My Code</strong> : </p>
  
  <pre><code>1:  module.exports.run = async (bot, message, args) =&gt; {
  2: 
  3:      let target = message.guild.member(message.mentions.users.first());
  4:      let reason = args.slice(1).join(' ');
  5:      let logs = message.guild.channels.cache.find(channel =&gt; channel.name === "⚠server_logs");
  6:    
  7:      // member.guild.channels.cache.find('⚠server_logs', config.logsChannel);
  8:
  9:      if (!message.member.hasPermission('BAN_MEMBERS')) return message.reply('you don\'t have permissions to use this command!s');
  10:
  11:      if (!target) return message.reply('please specify a member to ban!');
  12:      if (!reason) return message.reply('please specify a reason for this ban!');
  13:      if (!logs) return message.reply(`please create a channel called ${config.logsChannel} to log the bans!`);
  14:
  15:      let embed = new discord.cache.RichEmbed()
  16:          .setColor('RANDOM')
  17:          .setThumbnail(target.user.avatarURL)
  18:          .addField('Banned Member', `${target.user.username} with an ID: ${target.user,id}`)
  19:          .addField('Banned By', `${message.author.username} with an ID: ${message.author.id}`)
  20:          .addField('Banned Time', message.createdAt)
  21:          .addField('Banned At', message.channel)
  22:          .addField('Banned Reason', reason)
  23:          .addFooter('Banned user information', target.user.displayAvatarURL);
  24:
  25:      message.channel.send(`${target.user.username} was banned by ${message.author} for ${reason}`);
  26:      target.ban(reason);
  27:      logs.send(embed);
  28:  };
  </code></pre>