Browse Source

Fix disco.bot.Bot using update instead of inplace_update (#54)

pull/55/head
ryan 8 years ago
committed by Andrei Zbikowski
parent
commit
95d10a3ee4
  1. 2
      disco/bot/bot.py

2
disco/bot/bot.py

@ -406,7 +406,7 @@ class Bot(LoggingClass):
msg, triggered = obj msg, triggered = obj
if msg.id == event.message.id and not triggered: if msg.id == event.message.id and not triggered:
msg.update(event.message) msg.inplace_update(event.message)
triggered = self.handle_message(msg) triggered = self.handle_message(msg)
self.last_message_cache[msg.channel_id] = (msg, triggered) self.last_message_cache[msg.channel_id] = (msg, triggered)

Loading…
Cancel
Save