From 2c0cd085a4ed103ed0044e6670cd20ff4ad59ab9 Mon Sep 17 00:00:00 2001 From: Leo fu Date: Wed, 15 Apr 2026 12:38:09 -0400 Subject: [PATCH] fix(discord): remove duplicate channel_id assignment in message handler channel_id is already assigned from self._channel_key(message.channel) earlier in the same function. The second identical assignment on line 453 is dead code left over from a copy-paste. --- nanobot/channels/discord.py | 1 - 1 file changed, 1 deletion(-) diff --git a/nanobot/channels/discord.py b/nanobot/channels/discord.py index 336b6148..9a75da1e 100644 --- a/nanobot/channels/discord.py +++ b/nanobot/channels/discord.py @@ -450,7 +450,6 @@ class DiscordChannel(BaseChannel): await self._start_typing(message.channel) # Add read receipt reaction immediately, working emoji after delay - channel_id = self._channel_key(message.channel) try: await message.add_reaction(self.config.read_receipt_emoji) self._pending_reactions[channel_id] = message