title: Send message to specific channel with typescript
body: <p>I want to send a greeting message to an "welcome" text channel, whenever a new user joins the server (guild).</p>
  
  <p>The problem I'm facing is that, when I find the wanted channel, I will receive the channel with the type <code>GuildChannel</code>.</p>
  
  <p>Since <code>GuildChannel</code> has no <code>send()</code> function, I'm not able to send the message. But I can't find a way to find the <code>TextChannel</code>, so I'm stuck here.</p>
  
  <p>How can I get to the <code>TextChannel</code> so that I'm able to use the <code>send()</code> message? Below the code I'm using by now:</p>
  
  <pre><code>// Get the log channel (change to your liking) 
  const logChannel = guild.channels.find(123456); 
  if (!logChannel) return;
  
  // A real basic message with the information we need. 
  logChannel.send('Hello there!'); // Property 'send' does not exist on type 'GuildChannel'
  </code></pre>
  
  <p>I'm using version 11.3.0 of discord.js</p>