title: Getting the URL of an attachment in Discord.py
body: <p>I am trying to get the URL of the file that the user attaches so I can use it later on in my code however I'm not too sure on how to go about doing so.</p>
  
  <pre><code>@client.command(pass_context=True)
  async def readURL(ctx, url):
      # Do something
  </code></pre>
  
  <p><strong>References:</strong></p>
  
  <ul>
  <li><a href="https://discordpy.readthedocs.io/en/latest/ext/commands/api.html?highlight=ctx" rel="nofollow noreferrer">discord.ext.commands</a></li>
  <li><a href="https://discordpy.readthedocs.io/en/latest/api.html#discord.Attachment.url" rel="nofollow noreferrer">Attachment.url</a></li>
  </ul>