fixed voiceStateUpdate (fr this time)
This commit is contained in:
parent
406493ad7b
commit
025c552f97
1 changed files with 0 additions and 13 deletions
|
@ -2,7 +2,6 @@ import { getVoiceConnection } from "@discordjs/voice";
|
|||
|
||||
export default async function (oldState, newState, client) {
|
||||
if (oldState.channelId === null || typeof oldState.channelId == "undefined") {
|
||||
console.log(`voice state update for joining vc, ignoring`);
|
||||
return;
|
||||
}
|
||||
const guild = oldState.guild;
|
||||
|
@ -21,18 +20,6 @@ export default async function (oldState, newState, client) {
|
|||
if (connection) {
|
||||
if (connection.joinConfig.channelId === oldState.channelId) {
|
||||
if (newState.channelId !== undefined) {
|
||||
console.log(
|
||||
oldState.guild.members.cache.filter(
|
||||
(member) =>
|
||||
member.voice.channelId === connection.joinConfig.channelId
|
||||
)
|
||||
);
|
||||
console.log(
|
||||
oldState.guild.members.cache.filter(
|
||||
(member) =>
|
||||
member.voice.channelId === connection.joinConfig.channelId
|
||||
).size
|
||||
);
|
||||
if (
|
||||
guild.members.cache.filter(
|
||||
(member) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue