Browse Source

slowmode fixed for realises this time

tags/v1.4.0
roxie 6 years ago
parent
commit
a548301da8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cogs/admin.py

+ 1
- 1
cogs/admin.py View File

@@ -31,7 +31,7 @@ class Admin():
else:
# Else, check when their last message was and if time is smaller than the timer, delete the message.
timer = datetime.timedelta(seconds=self.slow_mode_channels[channel.id])
if message.timestamp - self.users[channel.id][author.id] < timer:
if message.created_at - self.users[channel.id][author.id] < timer:
await message.delete()
else:
self.users[message.channel.id][author.id] = message.created_at

Loading…
Cancel
Save