mirror of https://github.com/stijndcl/didier
broken type
parent
f9083e84ed
commit
966eb63165
|
@ -59,7 +59,7 @@ class Fun(commands.Cog):
|
||||||
async def memegen_slash(self, interaction: discord.Interaction, meme: str):
|
async def memegen_slash(self, interaction: discord.Interaction, meme: str):
|
||||||
"""Slash command to generate a meme"""
|
"""Slash command to generate a meme"""
|
||||||
async with self.client.postgres_session as session:
|
async with self.client.postgres_session as session:
|
||||||
result = await expect(get_meme_by_name(session, meme), entity_type="meme", argument=meme)
|
result = expect(await get_meme_by_name(session, meme), entity_type="meme", argument=meme)
|
||||||
|
|
||||||
modal = GenerateMeme(self.client, result)
|
modal = GenerateMeme(self.client, result)
|
||||||
await interaction.response.send_modal(modal)
|
await interaction.response.send_modal(modal)
|
||||||
|
|
Loading…
Reference in New Issue