我对 discord.py 和 python 很陌生,但我正在努力学习。我不知道如何将 command.reset_cooldown 添加到我的代码中。正如它在下面的代码中所说,我希望 !test 忽略冷却时间,但我希望 !test 2 有冷却时间。有人能帮我吗?
@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')
elif command.lower() == '2':
await ctx.send('I want this to have a Cooldown')```
qq_笑_17
料青山看我应如是
四季花海
相关分类