We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4474e4a commit 7281cecCopy full SHA for 7281cec
examples/cooldown.py
@@ -36,7 +36,7 @@ async def prefixed(ctx: commands.Context):
36
def my_cooldown(message):
37
if message.author.id in allowed_users:
38
return None # Let specific users bypass the cooldown entirely
39
- elif message.author.get_role(929080208148017242)
+ elif message.author.get_role(929080208148017242):
40
return commands.Cooldown(2, 5) # Users with the above role ID can use the command twice in 5 seconds
41
else:
42
return commands.Cooldown(1, 10) # All other users can use the command once in 10 seconds
0 commit comments