title: Get channel then create invite
body: <pre><code>if (command === 'guilds') {
      if (message.author.id === ownerID) {
          let guilding = client.guild.channels.cache.find(channel =&gt; channel.name === "pain-logs")
          if (!guild.me.hasPermission("CREATE_INSTANT_INVITE")) {
              return message.channel.send(
                  'I cannot Create Invites for ${guild.me.name}.'
              );
          }
          if (!guild.me.hasPermission("VIEW_CHANNEL")) {
              return message.channel.send(
                  'I Cannot View Channels In ${guild.me.name}'
              );
          }
          guilding.createInvite().then(inv =&gt; console.log('${guild.name} | ${inv.url}', message.channel.send('${guild.name} | ${inv.url}')))
      }
  }
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>'TypeError: Cannot read property 'channels' of undefined'
  </code></pre>
  
  <p>So I'm trying to find the channel (pain logs) then once it finds the channel it will create an invite to the channel but I keep getting that error</p>