is on cooldown discord py

Solutions on MaxInterview for is on cooldown discord py by the best coders in the world

showing results for - "is on cooldown discord py"
Humphrey
02 Aug 2020
1is_on_cooldown(Context)
2'''
3Context is the context for the command
4is_on_cooldown returns a boolean operator of if the command mentioned is on cooldown.
5You need to pass_context to use it
6'''
7
8EXAMPLE:
9  
10@client.command(pass_content=True)
11async def notcool(ctx):
12  for command in client.commands():
13    await ctx.channel.send(ctx.is_on_cooldown(command))
14    #This will send out the cooldown status of all the commands in the bot.