voiceLeave user voiceChannel broken?
See original GitHub issueIs it intended behaviour that the voiceLeave
event supplies a user
object with a voiceChannel
property that is always null
?
I have recently updated discord.js to what I assume is the master branch. Previously, the voiceChannel
property could be accessed on a user
object supplied by a voiceLeave
event to determine whether the user has disconnected from voice, or switched to another channel. This is no longer possible in the version that I am now using.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Users' voice channels not updating #177 - discordjs/discord.js
on commit 4b8f85d the user's VoiceChannel is not being updated from the time the bot is started. steps to reproduce. Join a voice...
Read more >How to make a discord bot leave the voice channel after being ...
However, I want the bot to leave the voice channel on being inactive for a certain time like 5 minutes. By inactive, I...
Read more >Voice Troubleshooting - Windows - Guilded
Check out this troubleshooting guide if you have issues with hearing, being heard, or the mic not working. First, check that you have......
Read more >How do I fix voice chat issues in Fortnite? - Epic Games
Important: If you are in Egypt you won't be able to use voice chat in Fortnite due to the country blocking VOIP technology....
Read more >How To Fix Discord Audio Cutting Out During Voice Call
Recently, users have been reporting issues with Discord voice chat and voice calls, such as the audio cutting out. If you're experiencing this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Added convenience
voiceSwitch
event to indev,on("voiceSwitch", (oldChannel, newChannel, user) => {})
Also it appears user.voiceChannel could have been updated earlier, so I think your method should work again (again, change is on indev branch)
Intentional. Maybe a voiceSwitch event should be added…