📅  最后修改于: 2022-03-11 14:45:50.345000             🧑  作者: Mango
@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')