fix(commands): don't check cooldown for edited messages
This commit is contained in:
parent
93c67f707c
commit
d5d8c56ba1
2
core.py
2
core.py
@ -47,7 +47,7 @@ async def on_message(message, edited=False):
|
|||||||
await command_locks[(message.guild.id, message.author.id)].acquire()
|
await command_locks[(message.guild.id, message.author.id)].acquire()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if cooldowns := command_cooldowns.get(message.author.id):
|
if (cooldowns := command_cooldowns.get(message.author.id)) and not edited:
|
||||||
if (end_time := cooldowns.get(matched)) and int(time.time()) < int(
|
if (end_time := cooldowns.get(matched)) and int(time.time()) < int(
|
||||||
end_time
|
end_time
|
||||||
):
|
):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user