擅长: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</code>。尝试了his代码,但没有成功,幸运的是,我能够找到指向正确方向的源代码</p>