【发布时间】:2021-01-29 06:40:15
【问题描述】:
目前我有这个:
@client.command()
async def test(ctx):
if ctx.message.author.has_role(803952153496256512):
@commands.cooldown(3, 60, commands.BucketType.user)
elif ctx.message.author.has_role(803952219694432326 ):
@commands.cooldown(5, 60, commands.BucketType.user)
elif ctx.message.author.has_role(803952282198212668 ):
@commands.cooldown(7, 60, commands.BucketType.user)
else:
return
我想要它,所以如果用户具有特定角色,命令的冷却时间会有所不同
【问题讨论】:
标签: python discord discord.py discord.py-rewrite