title: Discord.py send message to specific channel
body: <p>I would like to send a message in a specific text channel no matter on which server, so I cannot hard-code the ID of my channel.</p>
  <p><strong>This part of the code is working :</strong></p>
  <pre><code>    @client.event
  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:
          await general.send('Hello {}!'.format(guild.name))
  </code></pre>
  <p><strong>But my problem is this part witch is in a Cog :</strong></p>
  <pre><code>import discord, httplib2, random, string
  from discord.ext import commands
  from datetime import datetime
  from discord.ext.commands import cooldown
  from discord.utils import find
  class Cog01(commands.Cog):
  
      def __int__(self, client):
          self.client = client
  
  
  
      @commands.Cog.listener()
      async def on_ready(self):
          print('Cog01 is loaded')
  
          fff = find(lambda x: x.name == 'general',  guild.text_channels)
  
  
  def setup(client):
      client.add_cog(Cog01(client))
  </code></pre>
  <p>I got this error :</p>
  <pre><code>NameError: name 'guild' is not defined
  </code></pre>
  <p>I tried a lot of things, sometimes the error disappeared but it still didn't work.</p>
  <p>I am sure it's possible, I lost a older version of my code that worked.</p>
  <p>I've been searching for a solution for several hours but the solution might be really simple, I'm new to programming.</p>