fix(moderation): awaited coroutines
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
This commit is contained in:
parent
9adfe1461f
commit
2fb7fd2d0c
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue