mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-19 08:05:01 +00:00
10 lines
424 B
TypeScript
10 lines
424 B
TypeScript
import { eventListener } from "knub";
|
|
import { CompanionChannelsPluginType } from "../types";
|
|
import { handleCompanionPermissions } from "../functions/handleCompanionPermissions";
|
|
|
|
export const VoiceChannelLeaveEvt = eventListener<CompanionChannelsPluginType>()(
|
|
"voiceChannelLeave",
|
|
({ pluginData, args: { member, oldChannel } }) => {
|
|
handleCompanionPermissions(pluginData, member.id, null, oldChannel.id);
|
|
},
|
|
);
|