Skip to content

Commit

Permalink
fix: remove references to old starboard
Browse files Browse the repository at this point in the history
  • Loading branch information
qLunar committed Sep 30, 2023
1 parent bc262e9 commit 8b9264a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chiya/cogs/listeners/joyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 8b9264a

Please sign in to comment.