title: Send message when bot joins server [Discord.py]
body: <p>I'm currently making a discord bot and would like to send a message in the <code>#general</code> channel of a server when it joins, this is the code that I have so far.</p>
  <pre><code>async def on_guild_join(guild):
      general = find(lambda x: x.name == 'general',  guild.text_channels)
      if general and general.permissions_for(guild.me).send_messages:
          embed=discord.Embed(title=&quot;**======== *Thanks For Adding Me!* ========**&quot;, description=f&quot;&quot;&quot;
          Thanks for adding me to {guild.name}!
          You can use the `--help` command to get started!
          &quot;&quot;&quot;, color=0xd89522)
          await general.send(embed=embed)
  </code></pre>
  <p>When i run this code noting happens. I dont get any erorrs or output.</p>
  <p>If anyone could help, that would be awesome. Thanks!</p>