Discord.js-突击队节流不起作用
Discord.js-commando throttling not working
我正在尝试限制命令,让它们有冷却时间,我跟着突击队 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,
},
});
}
//...
}
您可以发送垃圾邮件,因为在 CommandoClientOptions 中声明的所有者正在绕过用户权限和命令限制等限制。
任何非所有者用户都应按预期受到限制。
我正在尝试限制命令,让它们有冷却时间,我跟着突击队 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,
},
});
}
//...
}
您可以发送垃圾邮件,因为在 CommandoClientOptions 中声明的所有者正在绕过用户权限和命令限制等限制。
任何非所有者用户都应按预期受到限制。