mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
Allow companion_channels to take category ID
This commit is contained in:
parent
205f7721ea
commit
ff053d2f05
5 changed files with 24 additions and 19 deletions
|
@ -1,10 +1,11 @@
|
|||
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.id);
|
||||
handleCompanionPermissions(pluginData, member.id, newChannel);
|
||||
},
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue