0

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?

Mitknas
  • 1
  • 1

0 Answers0