Chaz Ashley
Chaz Ashley
DIAdiscord.js - Imagine an app
Created by Chaz Ashley on 5/30/2024 in #djs-questions
Can a bot react to a user joining a voice channel without being there?
Hey guys, I want to notify certain users when any other user joins any voice channel on a server, can I do that without bot being joined to any of those voice channels and just hanging on the server? I tried using
client.on(Events.VoiceStateUpdate, async (oldState, newState) => {
console.log({ oldState, newState });
// rest of the code
client.on(Events.VoiceStateUpdate, async (oldState, newState) => {
console.log({ oldState, newState });
// rest of the code
but it does nothing when I join a voice channel discord.js version: [email protected] node version: v18.17.0
2 replies