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()