3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +00:00

Port CompanionChannels

This commit is contained in:
Dragory 2020-07-29 00:28:04 +03:00
parent 95a03a0110
commit 0f69473c05
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
8 changed files with 160 additions and 0 deletions

View file

@ -0,0 +1,10 @@
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);
},
);