mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-06 17:38:35 +00:00
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:
parent
a6ea06e6bf
commit
2c0cd085a4
@ -450,7 +450,6 @@ class DiscordChannel(BaseChannel):
|
|||||||
await self._start_typing(message.channel)
|
await self._start_typing(message.channel)
|
||||||
|
|
||||||
# Add read receipt reaction immediately, working emoji after delay
|
# Add read receipt reaction immediately, working emoji after delay
|
||||||
channel_id = self._channel_key(message.channel)
|
|
||||||
try:
|
try:
|
||||||
await message.add_reaction(self.config.read_receipt_emoji)
|
await message.add_reaction(self.config.read_receipt_emoji)
|
||||||
self._pending_reactions[channel_id] = message
|
self._pending_reactions[channel_id] = message
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user