Logs - Discordjs
Hello, I have logs when a member changes vocal room but how can I put logs if they are moved?
7 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by staffI couldn't find anything useful in the docs and on the internet.
My code :
Yes, but how can I check if he is the one changing the channel or if he is being moved.
Oh my
compare the sessionID property of the oldState and newState maybe
If the sessionID remains the same, the user switched channels on their own.
Ah, but is it better to use Audit Logs for the other logs? (When a member leaves or joins the server and when he leaves or joins a voice room.
Ok, thanks
Oops, I forgot. 🙂
hmm, shit, then audit logs
😉
Thank you and have a nice day or night if you are in E.U. 😴
<:orange_smile:976628301256867900>