From 52d8818ba1b1e99e7a7372271303ed2a37c4af81 Mon Sep 17 00:00:00 2001 From: skins Date: Wed, 1 Sep 2021 22:02:00 +0100 Subject: [PATCH] Sarenrae: await api_ping --- sarenrae/sarenrae.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sarenrae/sarenrae.py b/sarenrae/sarenrae.py index 776979f..471ad9d 100644 --- a/sarenrae/sarenrae.py +++ b/sarenrae/sarenrae.py @@ -35,25 +35,25 @@ class Sarenrae(commands.Cog): @commands.command() async def ancestry(self, ctx, *args): name = ' '.join(args) - html = self.api_ping("ancestry", name) + html = await self.api_ping("ancestry", name) await ctx.send(file=discord.File(image(html), filename=f"{name}.jpg")) @commands.command() async def action(self, ctx, *args): name = ' '.join(args) - html = self.api_ping("action", name) + html = await self.api_ping("action", name) await ctx.send(file=discord.File(image(html), filename=f"{name}.jpg")) @commands.command() - async def spell(self, ctx, *args): + async def sar_spell(self, ctx, *args): name = ' '.join(args) - html = self.api_ping("spell", name) + html = await self.api_ping("spell", name) await ctx.send(file=discord.File(image(html), filename=f"{name}.jpg")) @commands.command() async def item(self, ctx, *args): name = ' '.join(args) - html = self.api_ping("equipment", name) + html = await self.api_ping("equipment", name) await ctx.send(file=discord.File(image(html), filename=f"{name}.jpg")) @commands.command()