Sarenrae: Add name to ancestry image

This commit is contained in:
skins 2021-09-01 21:35:22 +01:00
parent f0e125b736
commit 1505855106

View File

@ -33,7 +33,7 @@ class Sarenrae(commands.Cog):
headers = {"Authorization": await self.conf.token()}
req = requests.get(f"https://api.pathfinder2.fr/v1/pf2/ancestry?name={name}", headers=headers).json()
html = req["results"][0]["data"]["description"]["value"]
await ctx.send(file=discord.File(image(html)))
await ctx.send(image=discord.File(image(html), filename=f"{name}.jpg"))
@commands.command()
@checks.is_owner()