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