Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove cooldown discord python

@commands.cooldown(1, 30, commands.BucketType.user)
async def test(ctx, command=None):
    if command is None:
        await ctx.send('I want this to ignore cooldown')
        ctx.command.reset_cooldown(ctx)  
        # reset_cooldown is an attribute of `Command`, not `function`

    elif command.lower() == '2':
        await ctx.send('I want this to have a Cooldown')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #cooldown #discord #python
ADD COMMENT
Topic
Name
8+3 =