I want to send a message to a specific user after someone joined into a specific channel
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
0
So, I want my Discord bot to send a message to a specific user whenever someone joins into a specific channel. But my code doesn't seem to work. Does someone know how to fix it? client.on('voiceStateUpdate', (oldMember, newMember) => { let newUserChannel = newMember.voiceChannel let oldUserChannel = oldMember.voiceChannel if(oldUserChannel === undefined && newUserChannel !== undefined) { if(voiceChannel.id === "530501827389685762"){ client.users.get("188984116618854400").send("Ein neuer Spieler ist im Aufnahmebereich!") } else { return; ...