aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar SebastiaanZ <[email protected]>2019-07-04 11:31:58 +0200
committerGravatar SebastiaanZ <[email protected]>2019-07-04 11:31:58 +0200
commitc0a29b4ea1b3ddc6db119987a883dcbf8c9aa916 (patch)
tree91533e553c2d9c6a8904039c6ef25011378fdd8e
parentMerge branch 'django-watchchannels' of github.com:python-discord/bot into dja... (diff)
Fixing bug with misnamed MessageHistory attribute message_count in if-statement
-rw-r--r--bot/cogs/watchchannels/watchchannel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/watchchannels/watchchannel.py b/bot/cogs/watchchannels/watchchannel.py
index 46b20b4f0..9f67367fc 100644
--- a/bot/cogs/watchchannels/watchchannel.py
+++ b/bot/cogs/watchchannels/watchchannel.py
@@ -230,7 +230,7 @@ class WatchChannel(ABC):
if (
msg.author.id != self.message_history.last_author
or msg.channel.id != self.message_history.last_channel
- or self.message_history.count >= limit
+ or self.message_history.message_count >= limit
):
self.message_history = MessageHistory(last_author=msg.author.id, last_channel=msg.channel.id)