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)