From d1d10ee8532fa697d679618640d22e6517970b55 Mon Sep 17 00:00:00 2001 From: stijndcl Date: Fri, 26 Aug 2022 18:51:34 +0200 Subject: [PATCH] Fix naming & missing argument --- didier/cogs/fun.py | 2 +- didier/cogs/owner.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/didier/cogs/fun.py b/didier/cogs/fun.py index 57bac27..2d53b0c 100644 --- a/didier/cogs/fun.py +++ b/didier/cogs/fun.py @@ -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: diff --git a/didier/cogs/owner.py b/didier/cogs/owner.py index c5ee213..2fa4b4e 100644 --- a/didier/cogs/owner.py +++ b/didier/cogs/owner.py @@ -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):