discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

Member object in voice state object has old mute/deaf state

Open itsTyrion opened this issue 2 years ago • 1 comments

Description

The member object in the voice-state-object has mute/deaf properties. It appears that their values represent the previous (guild) mute/deaf state, not the current one.

Since this is an update ..packet?, it would make sense to include the previous state, but this being an oversight is equally possible, so I'm unsure if this is by-design or not.

Steps to Reproduce

Observe voice-state-updates while changing a guild member's mute/deaf state

Expected Behavior

Again, I'm not sure if I should expect different behavior. If the member object has the previous state by-design, it should be noted in the docs imo. It feels like it's a bug but could also be a documentation issue

Current Behavior

--

Screenshots/Videos

imageimage

Client and System Information

I was observing this with the library Javacord on Windows 10 LTSC 2021 (21H2), which shouldn't matter as I printed the raw JSON response

itsTyrion avatar Mar 04 '22 14:03 itsTyrion

Thanks for the report. I have flagged this issue to our real-time team as it is not clear if this is intended or a bug.

night avatar Mar 25 '22 19:03 night