title: How can I edit an embed color with my discord bot with discord.py
body: <p>I've been working on a discord bot for fun. I was wondering how I could use edit_message to change the embed color of the message.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>@bot.command()
  async def test(self):
      """Embed color changing"""
      em1 = discord.Embed(title="Red", colour=0xFF0000)
      msg = await self.message.channel.send(embed=em1)
      em2 = discord.Embed(title="Green", colour=0x00FF00)
      await self.bot.edit_message(msg, embed=em2)
  </code></pre>
  
  <p>When I run the command I get this error: </p>
  
  <blockquote>
    <p>discord.ext.commands.errors.CommandInvokeError: Command raised an
    exception: AttributeError: 'Bot' object has no attribute
    'edit_message'</p>
  </blockquote>