From 8b9264ab462500d2be17a082b6513db2bb48c070 Mon Sep 17 00:00:00 2001 From: qLunar <100940270+qLunar@users.noreply.github.com> Date: Sat, 30 Sep 2023 10:59:25 +0530 Subject: [PATCH] fix: remove references to old starboard --- chiya/cogs/listeners/joyboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chiya/cogs/listeners/joyboard.py b/chiya/cogs/listeners/joyboard.py index 167daaf3..8ed804ca 100644 --- a/chiya/cogs/listeners/joyboard.py +++ b/chiya/cogs/listeners/joyboard.py @@ -245,11 +245,11 @@ async def on_raw_message_delete(self, payload): try: joyboard_channel = self.bot.get_channel(config["channels"]["joyboard"]["channel_id"]) - star_embed = await joyboard_channel.fetch_message(result["joy_embed_id"]) + joy_embed = await joyboard_channel.fetch_message(result["joy_embed_id"]) db["joyboard"].delete(channel_id=payload.channel_id, message_id=payload.message_id) db.commit() db.close() - await star_embed.delete() + await joy_embed.delete() except discord.NotFound: db.close()