fixed voiceStateUpdate
This commit is contained in:
parent
8c18c71d09
commit
152a4c7796
1 changed files with 4 additions and 3 deletions
|
@ -14,7 +14,7 @@ export default async function (oldState, newState, client) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
const debugchannel = client.channels.cache.get("1148814162273763418");
|
const debugchannel = client.channels.cache.get("1148814162273763418");
|
||||||
debugchannel.send(
|
debugchannel.send(
|
||||||
"invalid voiceStateUpdate: no guild found. check console for details"
|
"invalid voiceStateUpdate: no guild found. check console for details <@440163494529073152>"
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -40,8 +40,9 @@ export default async function (oldState, newState, client) {
|
||||||
).size <= 1
|
).size <= 1
|
||||||
) {
|
) {
|
||||||
connection.destroy();
|
connection.destroy();
|
||||||
console.log(
|
const debugchannel = client.channels.cache.get("1148814162273763418");
|
||||||
`destroyed voice connection for guild ${guild.id} in channel ${connection.joinConfig.channelId}`
|
debugchannel.send(
|
||||||
|
`left <#${connection.joinConfig.channelId}>} due to nobody being in it`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue