Search
 
SCRIPT & CODE EXAMPLE
 

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')
Comment

PREVIOUS NEXT
Code Example
Python :: rectangle function numpy 
Python :: Kinesis Client get_records example 
Python :: python on_mouse_down/collidepoint 
Python :: pairwise swap in data structure in python 
Python :: python convert comma separated list of number to float 
Python :: programe to find contagious sum of sequence 
Python :: how to register button presses in pysimpleGUI 
Python :: Dist/Hist Plot Code in Seaborn 
Python :: how to convert array value to integer in python 
Python :: return tuples form functions in Python 
Python :: flask lazy response style with `make_response` 
Python :: python list three from the back 
Python :: get the value of qpushbutton pyqt5 with argument 
Python :: how to check for non-datetime value in python 
Python :: Half String 
Python :: how to remove no data times plotly 
Python :: check labels with handles in ax 
Python :: django validate_comma_separated_integer_list 
Python :: how to multiply two lists in python 
Python :: python lane angle detection 
Python :: stellargraph python 
Python :: Optimize images in python using pillow 
Python :: Block encoding request python 
Python :: install wget in anaconda 
Python :: sns plot standard form 
Python :: Creating sub elements in xml in python with ElementTree 
Python :: if python 
Python :: text python 
Python :: abstract classes in python 
Python :: time library python 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =