#How to Execute Function when User Starts and Stops Talking in VC

3 messages · Page 1 of 1 (latest)

torn sage
#

I'm relatively new to node js and discord js in general but I haven't really found a clear answer to this.

I want to create a bot that will run a function (send a message in chat) when a specific user stops or starts talking in vc. I understand how client.on works and I've created a very simple bot before, I just can't seem to figure out how to do this.

discord js version 14.7.1
node js version 18.12.1

noble gale
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

opaque ibex
#

Voice related stuff isn't part of the main discord.js library and is instead its own library. There are guides for receiving on the voice website iirc