title: asyncio.run() cannot be called from an event loop
body: <p>I'm trying to call a function in async function and the problem is <code>asyncio.run()</code> don't work in a loop event</p>
  <p><strong>Here is the RuntimeError:</strong></p>
  <blockquote>
  <p>asyncio.run() cannot be called from a running event loop.</p>
  </blockquote>
  <p>I also tried to use <code>nest_asyncio.apply()</code> but it's show me the same problem</p>
  <p><strong>Here is my code:</strong></p>
  <pre><code>@client.event
  async def on_message(message):
      
      if message.content.startswith(&quot;!shodan organization&quot;):
          ip = (message.content.split()[2])
          queryexec =  asyncio.run(query(hostname,apikey,ip))
        
          message.channel.send(queryexec)
  </code></pre>
  <p><strong>The function that I'm trying to call:</strong></p>
  <pre><code>async def query(hostname,apikey,ip):
          url = &quot;http://%s&quot; % (hostname) + &quot;/ip/%s&quot; % ip + &quot;?key=%s&quot; % apikey
          r = requests.get(url)
          if r.status_code == requests.codes.NOT_FOUND:
              return 'test 1'
          if r.status_code == requests.codes.OK:
              return r.json()
  </code></pre>