Sarenrae: bug fix 2
This commit is contained in:
parent
72e7d2a6b9
commit
54cdc26137
@ -25,7 +25,7 @@ class Sarenrae(commands.Cog):
|
|||||||
headers = {"Authorization": self.token}
|
headers = {"Authorization": self.token}
|
||||||
req = requests.get(f"https://api.pathfinder2.fr/v1/pf2/ancestry?name={name}", headers=headers).json()
|
req = requests.get(f"https://api.pathfinder2.fr/v1/pf2/ancestry?name={name}", headers=headers).json()
|
||||||
html = req["results"][0]["data"]["description"]["value"]
|
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")))
|
await ctx.send(file=discord.File(open(f"ancestry/{name}.png", "rb")))
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user