title: How to make a discord bot react to PAST private messages?
body: <p>I made a simple discord.py bot that reacts whenver it is PM'd. However, if someone messages it while my bot is offline, it will not react. How can i make it display all messages received while it was online on startup?</p>
  
  <p>Current code:</p>
  
  <pre><code>import discord
  from discord.ext import commands
  import asyncio
  
  client = commands.Bot(command_prefix='.')
  
  @client.event
  async def on_message(message):
  if message.guild is None and message.author != client.user:
  
      send_this_console=f'{message.author}: \n{message.content}\n'
      print(send_this_console)
  await client.process_commands(message)
  </code></pre>