我试图限制命令,以便他们有一个冷却时间,我遵循突击队 api 我没有收到任何错误,但这并没有阻止我通过 1 次使用,所以我仍然可以像往常一样向它发送垃圾邮件任何想法?
module.exports = class gryffindormotto extends commando.Command {
constructor(client) {
super(client, {
name: 'gryffindormotto',
aliases: ['gryffindorm','grym'],
group: 'house',
memberName: 'gryffindormotto',
description: 'Sends a message with house motto of *House* you are in. **It is house restricted.**',
throttling: {
usages: 1,
duration: 10,
},
});
}
//...
}