擅长:python、mysql、java
<pre><code>@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')
test.reset_cooldown(ctx)
elif command.lower() == '2':
await ctx.send('I want this to have a Cooldown')
</code></pre>
<p><code>await test.reset_cooldown(ctx)</code>将重置调用该命令的用户的冷却时间</p>