mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +00:00
Hotfix 2
This commit is contained in:
parent
4c8523adf3
commit
78c2fdf4f0
1 changed files with 5 additions and 1 deletions
|
@ -11,7 +11,11 @@ export const LogsVoiceStateUpdateEvt = logsEvt({
|
||||||
async listener(meta) {
|
async listener(meta) {
|
||||||
const oldChannel = meta.args.oldState.channel;
|
const oldChannel = meta.args.oldState.channel;
|
||||||
const newChannel = meta.args.newState.channel;
|
const newChannel = meta.args.newState.channel;
|
||||||
const member = meta.args.newState.member ?? meta.args.oldState.member!;
|
const member = meta.args.newState.member ?? meta.args.oldState.member;
|
||||||
|
|
||||||
|
if (!member) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!newChannel && oldChannel) {
|
if (!newChannel && oldChannel) {
|
||||||
// Leave evt
|
// Leave evt
|
||||||
|
|
Loading…
Add table
Reference in a new issue