mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
10 lines
416 B
TypeScript
10 lines
416 B
TypeScript
import { eventListener } from "knub";
|
|
import { CompanionChannelsPluginType } from "../types";
|
|
import { handleCompanionPermissions } from "../functions/handleCompanionPermissions";
|
|
|
|
export const VoiceChannelJoinEvt = eventListener<CompanionChannelsPluginType>()(
|
|
"voiceChannelJoin",
|
|
({ pluginData, args: { member, newChannel } }) => {
|
|
handleCompanionPermissions(pluginData, member.id, newChannel.id);
|
|
},
|
|
);
|