Fix naming & missing argument

pull/127/head
stijndcl 2022-08-26 18:51:34 +02:00
parent 8fb990cea8
commit d1d10ee853
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ class Fun(commands.Cog):
return await ctx.reply(joke.joke, mention_author=False)
@commands.group(name="Memegen", aliases=["Meme", "Memes"], invoke_without_command=True, case_insensitive=True)
async def memegen_ctx(self, ctx: commands.Context, meme_name: str, *, fields: str):
async def memegen_msg(self, ctx: commands.Context, meme_name: str, *, fields: str):
"""Command group for meme-related commands"""
async with ctx.typing():
async with self.client.postgres_session as session:

View File

@ -177,8 +177,8 @@ class Owner(commands.Cog):
if meme is None:
return await interaction.followup.send("A meme with this name (or id) already exists.")
await interaction.followup.send(f"Added meme `{meme.meme_id}`.")
await self.client.database_caches.memes.invalidate()
await interaction.followup.send(f"Added meme `{meme.meme_id}`.")
await self.client.database_caches.memes.invalidate(session)
@commands.group(name="Edit", case_insensitive=True, invoke_without_command=False)
async def edit_msg(self, ctx: commands.Context):