automod: fix cooldowns applying across rules
This commit is contained in:
parent
9ac4e15573
commit
4f66f004d5
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ export function checkAndUpdateCooldown(
|
||||||
rule: TRule,
|
rule: TRule,
|
||||||
context: AutomodContext,
|
context: AutomodContext,
|
||||||
) {
|
) {
|
||||||
const cooldownKey = context.user?.id;
|
const cooldownKey = `${rule.name}-${context.user?.id}`;
|
||||||
|
|
||||||
if (cooldownKey) {
|
if (cooldownKey) {
|
||||||
if (pluginData.state.cooldownManager.isOnCooldown(cooldownKey)) {
|
if (pluginData.state.cooldownManager.isOnCooldown(cooldownKey)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue