title: how do i check if a discord message contains a string
body: <p>so i am trying to make a discord bot with discord,.py and i want the bot to say something when someone sends a message that contains a certain string. this is what i want to happen</p>
  <pre><code>@client.event
  async def on_message(msg):
      if 'i' in msg:
          channel = client.get_channel(&quot;742261026686500896&quot;)
          await channel.send(&quot;i&quot;)
  </code></pre>
  <p>i get this error</p>
  <pre><code>TypeError: argument of type 'Message' is not iterable
  </code></pre>
  <p>how would i go about doing this?</p>