I'm doing an API request using requests
@client.command()
async def search(ctx, user=""):
response = requests.get('URL'+user)
data = response.json()
await ctx.send(data)
But whenever typing the command in discord I have to type %20 whenever there is a space. Is there any way to do that automatically in the code?