From 673759bd44bfde77ecb1258167bdb1234e3dd8f3 Mon Sep 17 00:00:00 2001 From: thegamecracks <61257169+thegamecracks@users.noreply.github.com> Date: Sat, 8 Jun 2024 11:01:31 -0400 Subject: [PATCH] refactor: remove unnecessary staff filtering optimization Not like there'd be more than a dozen staff mentions at a time, let alone a few thousand --- src/theticketbot/cogs/inbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theticketbot/cogs/inbox.py b/src/theticketbot/cogs/inbox.py index 31ece30..e7f29d7 100644 --- a/src/theticketbot/cogs/inbox.py +++ b/src/theticketbot/cogs/inbox.py @@ -242,7 +242,7 @@ async def filter_and_update_inbox_staff( for mention in removed: await query.remove_inbox_staff(inbox_id, mention) - return [m for m in mentions if not m.startswith("<@&") or m not in removed] + return [m for m in mentions if m not in removed] class InboxStaffView(discord.ui.View):