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.
This commit is contained in:
Leo fu
2026-04-16 02:11:13 +08:00
committed by Xubin Ren
parent a6ea06e6bf
commit 2c0cd085a4
-1
View File
@@ -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