因此,我在我的机器人中添加了@commands.cooldown(1, 10, commands.BucketType.user),试图阻止人们向它发送垃圾邮件。我将错误消息设置为: async def on_command_error(ctx, error):
if isinstance(error, commands.CommandOnCooldownf'This command is not ready to use, try again in %.2f seconds' % error.