-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: VoiceStateUpdate newState channel holds the GuildMember object #6665
Comments
my project source: should you wish to run it yourself, add the file from the gist in the |
Thank you, god I am getting sloppy, forgive me, its weekend.
edit: it appears my clipboard did not want to copy properly the first time |
I cannot reproduce that behavior with the exact same intents and event you provided, not sure what's wrong there but it must be something else that you added |
I have run some tests, I have come to the conclusion that the voice library I am using is messing up the event, I have raised an issue with erela.js: MenuDocs/erela.js#136 |
Since this is an external library's fault (and cannot reproduce with just discord.js), I'll close this issue and label as invalid. |
Issue description
When
voiceStateUpdate
's are received, thechannel
property is not always correctly set. I believe this is only the case for thenewState
, I have not observed any wrong data in theoldState
.I have only looked at the
channel
andmember
properties thus far, though I would advise to inspect all to ensure correctness.In the
newState
thechannel
property has the same value as themember
property, (aGuildMember
object, instead of aChannel
ornull
)This is the case when anyone joins, leaves or moves channel, it does not matter who, same for the bot itself)
Further information:
I am using typescript, and a logger that also dumps what type of object is logged, giving proper insight to variable values.
I am also using erela.js for my bots voice system, though that should not matter as the issue is also observed for any other user then the bot.
Codesample
Debug output
discord.js version
13.1.0
Node.js version
16.8.0
Operating system
Linux
Priority this issue should have
Medium (should be fixed soon)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
GUILDS, GUILD_VOICE_STATES
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: