-
-
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
feat(GuildMember): Expose serverMute
and serverDeaf
fields
#10407
base: main
Are you sure you want to change the base?
Conversation
…r, even if the member is not connected in a voice call.
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
mute
and deaf
voice status of a member (server mute or deaf).mute
and deaf
voice status of a member.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- the docs should state that this is about the server deaf/mute state (as opposed to personal mute/deaf, terminology in-client is "Server Muted"/"Server Deafened")
- the current implementation always shows
false
for the inner payload of interactions, as those seem to not receive the two fields. potentially making the field nullable could work (same as you need to explicitly fetch a user to receive their public flags)l though this might also be an upstream bug
mute
and deaf
voice status of a member.mute
and deaf
fields on guild members
…erver mute and deafen state.
mute
and deaf
fields on guild membersserverMute
and serverDeaf
fields on guild members
serverMute
and serverDeaf
fields on guild membersserverMute
and serverDeaf
fields on GuildMember
serverMute
and serverDeaf
fields on GuildMemberserverMute
and serverDeaf
fields
…r on the server and set the default value to ‘null’ if the state is unknown.
I've taken your suggestions on board. Thank you for taking the time to read my PR. I'd be grateful for feedback on the latest changes. I've taken the For your second point, it might definitely be an upstream bug. At least it should be documented by Discord. |
Asking for clarification upstream: discord/discord-api-docs#7125 |
Please describe the changes this PR makes and why it should be merged:
According to the developer documentation, it is possible to find out whether a member has been muted or deafen by right-clicking. Even if the member is not connected in a voice call.
This is documented by the presence of the two fields in the
GuildMember
structure.Status and versioning classification: