mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-19 16:05:01 +00:00
Port CompanionChannels
This commit is contained in:
parent
70173a5a99
commit
c48e1c698b
8 changed files with 160 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
|||
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);
|
||||
},
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue