Skip to content

Commit 7281cec

Browse files
authored
Update cooldown.py
1 parent 4474e4a commit 7281cec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/cooldown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async def prefixed(ctx: commands.Context):
3636
def my_cooldown(message):
3737
if message.author.id in allowed_users:
3838
return None # Let specific users bypass the cooldown entirely
39-
elif message.author.get_role(929080208148017242)
39+
elif message.author.get_role(929080208148017242):
4040
return commands.Cooldown(2, 5) # Users with the above role ID can use the command twice in 5 seconds
4141
else:
4242
return commands.Cooldown(1, 10) # All other users can use the command once in 10 seconds

0 commit comments

Comments
 (0)