automod: add triggers for mod actions
This commit is contained in:
parent
5ffc3e7cc4
commit
93912541b4
34 changed files with 412 additions and 3 deletions
10
backend/src/plugins/Mutes/functions/offMutesEvent.ts
Normal file
10
backend/src/plugins/Mutes/functions/offMutesEvent.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { MutesEvents, MutesPluginType } from "../types";
|
||||
|
||||
export function offMutesEvent<TEvent extends keyof MutesEvents>(
|
||||
pluginData: GuildPluginData<MutesPluginType>,
|
||||
event: TEvent,
|
||||
listener: MutesEvents[TEvent],
|
||||
) {
|
||||
return pluginData.state.events.off(event, listener);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue