Sarenrae: bug fix 2

This commit is contained in:
skins 2021-09-01 20:23:47 +01:00
parent 72e7d2a6b9
commit 54cdc26137

View File

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