mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 22:21:51 +00:00
Hotfix 13
This commit is contained in:
parent
30f184897f
commit
51d2f61f25
1 changed files with 6 additions and 1 deletions
|
@ -6,7 +6,12 @@ export const VoiceStateUpdateEvt = companionChannelsEvt({
|
||||||
listener({ pluginData, args: { oldState, newState } }) {
|
listener({ pluginData, args: { oldState, newState } }) {
|
||||||
const oldChannel = oldState.channel;
|
const oldChannel = oldState.channel;
|
||||||
const newChannel = newState.channel;
|
const newChannel = newState.channel;
|
||||||
const memberId = newState.member ? newState.member.id : oldState.member!.id;
|
|
||||||
|
const memberId = newState.member?.id ?? oldState.member?.id;
|
||||||
|
if (!memberId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
handleCompanionPermissions(pluginData, memberId, newChannel, oldChannel);
|
handleCompanionPermissions(pluginData, memberId, newChannel, oldChannel);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue