title: Log deleted messages
body: <p>Hi im Hoping someone can help me with  #.Deleted Message. I'm trying to get it to log any deleted messages in a Channel called <code>logs</code>. I have defined the channel at the top of the script using channel I.D. Bot logs is the channel I.D</p>
  
  <pre><code>bot_logs = 'XXXXXXXXXXXX'
  </code></pre>
  
  <pre><code>@client.event
  async def on_message_delete(message):
      embed = discord.Embed(title="Message Deleted", color=0xf40000)
      embed.add_field(name="Before", value=message.content + ": was Deleted!", inline=False)
      await channel.send(discord.Object(id=bot_logs), embed=embed)
  </code></pre>
  
  <p>At the moment i keep getting <strong>Undefined variable 'channel'</strong></p>
  
  <p>Any help is much appreciated. </p>