title: "fn is not a function" discord.js
body: <p>recently I'm having some problems in Discord.js. I'm not an exper so forgive me if I ask some stuid question. This is the code:</p>
  
  <pre><code>let rUser = message.guild.member(message.mentions.users.first() || message.guild.members.cache.get(args[0]));
  if(!rUser) return message.channel.send('Couldn\'t find this user!');
  let rReason = args.join(' ').slice(22);
  if(!rReason) return message.channel.send('Insert a reason');
  
  let reportEmbed = new Discord.MessageEmbed()
  .setDescription('**User report**')
  .addField('Reported user:', `${rUser.displayName} &lt;${rUser.id}&gt;`)
  .addField(`Reason:`, `${rReason}`)
  .addField('Reported by:', message.author.username)
  .setColor(0xf52c2c);
  
  let rChannel = client.channels.cache.get(707956253040574525)
  if(!rChannel) return message.channel.send('Not valid report channel');
  
  rChannel.send(reportEmbed)
  </code></pre>
  
  <p>It gives me this error: TypeError: Cannot read property 'send' of undefined</p>
  
  <p>I'm using: node.js (6.14.4), discord.js (12.2.0), ms (2.1.2)</p>
  
  <p>EDIT</p>
  
  <p>Resolved updating node.js and changing</p>
  
  <pre><code>let rChannel = message.guild.channels.cache.find(`name`, 'reports')
  </code></pre>
  
  <p>with</p>
  
  <pre><code>let rChannel = message.guild.channels.cache.find(channel =&gt; channel.name === 'reports')
  </code></pre>
  
  <p>where "reports" is just the name of the channel where the bot will send the message</p>