async def request_canvas_image(ctx, url, member: discord.Member=None, params={}, is_gif=False):
    params_url = (('&' + '&'.join(['{}={}'.format(k, v) for (k, v) in params.items()])) if (params != {}) else '')
    async with ClientSession() as wastedSession:
        async with wastedSession.get(f"{url}?avatar={member.avatar_url_as(format='png', size=1024)}{params_url}") as wastedImage:
            imageData = io.BytesIO((await wastedImage.read()))
            (await wastedSession.close())
            (await ctx.send(file=discord.File(imageData, ('image.gif' if is_gif else 'image.png'))))
async def request_canvas_image(ctx, url, member: discord.Member=None, params={}, is_gif=False):
    params_url = (('&' + '&'.join(['{}={}'.format(k, v) for (k, v) in params.items()])) if (params != {}) else )
    async with ClientSession() as wastedSession:
        async with wastedSession.get(f"{url}?avatar={member.avatar_url_as(format='png', size=1024)}{params_url}") as wastedImage:
            imageData = io.BytesIO((await wastedImage.read()))
            (await wastedSession.close())
            (await ctx.send(file=discord.File(imageData, ('image.gif' if is_gif else 'image.png'))))