From 26eafd6a002b5cf745c717f73d8564967c198309 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Fri, 17 Jul 2026 02:12:31 -0700 Subject: [PATCH] refactor(discord): remove unused recovery reaction probe --- plugins/platforms/discord/adapter.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/plugins/platforms/discord/adapter.py b/plugins/platforms/discord/adapter.py index d8973b51f9110..d02c2bea508a4 100644 --- a/plugins/platforms/discord/adapter.py +++ b/plugins/platforms/discord/adapter.py @@ -2195,25 +2195,6 @@ class DiscordAdapter(BasePlatformAdapter): return False return True - async def _message_has_own_reaction(self, message: Any, emojis: set[str]) -> bool: - bot_user = getattr(self._client, "user", None) if self._client else None - bot_id = getattr(bot_user, "id", None) - for reaction in getattr(message, "reactions", []) or []: - if str(getattr(reaction, "emoji", "")) not in emojis: - continue - if getattr(reaction, "me", False): - return True - users = getattr(reaction, "users", None) - if not callable(users) or bot_id is None: - continue - try: - async for user in users(): - if getattr(user, "id", None) == bot_id: - return True - except Exception: - continue - return False - def _is_down_notice_content(self, content: str) -> bool: """Recognize only explicit Hermes/gateway outage notices.""" text = (content or "").lower()