3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 00:35:02 +00:00
zeppelin/backend/src/plugins/ModActions/functions/isEventIgnored.ts
Jonathan 7e8ffb9ee3
Revert "format: Prettier"
This reverts commit 517ce4f52f.
2021-04-02 23:21:53 -04:00

10 lines
343 B
TypeScript

import { GuildPluginData } from "knub";
import { IgnoredEventType, ModActionsPluginType } from "../types";
export function isEventIgnored(
pluginData: GuildPluginData<ModActionsPluginType>,
type: IgnoredEventType,
userId: string,
) {
return pluginData.state.ignoredEvents.some(info => type === info.type && userId === info.userId);
}