mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-19 07:20:00 +00:00
11 lines
320 B
TypeScript
11 lines
320 B
TypeScript
![]() |
import { GuildPluginData } from "knub";
|
||
|
import { MutesEvents, MutesPluginType } from "../types";
|
||
|
|
||
|
export function onMutesEvent<TEvent extends keyof MutesEvents>(
|
||
|
pluginData: GuildPluginData<MutesPluginType>,
|
||
|
event: TEvent,
|
||
|
listener: MutesEvents[TEvent],
|
||
|
) {
|
||
|
return pluginData.state.events.on(event, listener);
|
||
|
}
|