mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
13 lines
390 B
TypeScript
13 lines
390 B
TypeScript
import { PluginData } from "knub";
|
|
import { IgnoredEventType, ModActionsPluginType } from "../types";
|
|
|
|
export function clearIgnoredEvents(
|
|
pluginData: PluginData<ModActionsPluginType>,
|
|
type: IgnoredEventType,
|
|
userId: string,
|
|
) {
|
|
pluginData.state.ignoredEvents.splice(
|
|
pluginData.state.ignoredEvents.findIndex(info => type === info.type && userId === info.userId),
|
|
1,
|
|
);
|
|
}
|