title: How do I get the message content of a channel in discord.py
body: <p>This is my code but it is returning the message id's instead of the message content</p>
  <pre class="lang-py prettyprint-override"><code>@bot.command(name=&quot;jpg&quot;)
  async def jpg_File(message):
      channel = bot.get_channel(699577970117050399)
      messages = await channel.history(limit=500).flatten()
      print(messages)
  </code></pre>
  <p>This is what I get from printing messages: <code>&lt;Message id=937077040878866442 channel=&lt;TextChannel id=699577970117050399 name='memes' position=2 nsfw=False news=False category_id=699624938583359608 </code></p>