aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/free.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/cogs/free.py b/bot/cogs/free.py
index 90caad7ae..cd04275e2 100644
--- a/bot/cogs/free.py
+++ b/bot/cogs/free.py
@@ -46,8 +46,7 @@ class Free:
messages = await channel.history(limit=seek).flatten()
msg = messages[seek-1]
else:
- messages = await channel.history(limit=1).flatten()
- msg = messages[0]
+ msg = await channel.history(limit=1).next()
inactive = (datetime.utcnow() - msg.created_at).seconds
if inactive > self.TIME_INACTIVE: