Migrate ModActions to new Plugin structure !!mutes dont work!!

This commit is contained in:
Dark 2020-07-24 02:25:33 +02:00
parent ebcb28261b
commit fd56664984
29 changed files with 1213 additions and 16 deletions

View file

@ -1,7 +1,7 @@
import { PluginData } from "knub";
import { IgnoredEventType, ModActionsPluginType } from "../types";
import { SECONDS } from "../../../utils";
import { clearIgnoredEvent } from "./clearIgnoredEvents";
import { clearIgnoredEvents } from "./clearIgnoredEvents";
const DEFAULT_TIMEOUT = 15 * SECONDS;
@ -15,6 +15,6 @@ export function ignoreEvent(
// Clear after expiry (15sec by default)
setTimeout(() => {
clearIgnoredEvent(pluginData, type, userId);
clearIgnoredEvents(pluginData, type, userId);
}, timeout);
}