mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-18 23:09:59 +00:00
6 lines
324 B
TypeScript
6 lines
324 B
TypeScript
import { PluginData } from "knub";
|
|
import { IgnoredEventType, ModActionsPluginType } from "../types";
|
|
|
|
export function isEventIgnored(pluginData: PluginData<ModActionsPluginType>, type: IgnoredEventType, userId: string) {
|
|
return pluginData.state.ignoredEvents.some(info => type === info.type && userId === info.userId);
|
|
}
|