From 2fb7fd2d0cb1650ea8e3cc57cefe3be9e8c9eaa6 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 6 Oct 2023 09:36:23 -0400 Subject: [PATCH] fix(moderation): awaited coroutines --- moderation/moderation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index acc16a5..8b79010 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -492,7 +492,7 @@ class Moderation(commands.Cog): cursor.execute(response_query, (interaction.guild.id, case_number)) result = cursor.fetchone() case_dict = self.generate_dict(result) - embed = self.embed_factory('case', interaction=interaction, case_dict=case_dict) + embed = await self.embed_factory('case', interaction=interaction, case_dict=case_dict) await interaction.response.send_message(content=f"✅ Moderation #{case_number} resolved!", embed=embed) @app_commands.command(name="case") @@ -507,7 +507,7 @@ class Moderation(commands.Cog): database.close() if result: case = self.generate_dict(result) - embed = self.embed_factory('case', interaction=interaction, case_dict=case) + embed = await self.embed_factory('case', interaction=interaction, case_dict=case) await interaction.response.send_message(embed=embed, ephemeral=ephemeral) else: await interaction.response.send_message(content=f"No case with case number `{case_number}` found.", ephemeral=True)