Skip to content
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

Missing Permissions to get user voice state #7250

Open
thewilloftheshadow opened this issue Nov 3, 2024 · 2 comments
Open

Missing Permissions to get user voice state #7250

thewilloftheshadow opened this issue Nov 3, 2024 · 2 comments
Labels

Comments

@thewilloftheshadow
Copy link
Contributor

Description

The Get User Voice State route does not list the needed permissions to use the route, but we are getting a Missing Access (50001) error when trying to use the route.

Steps to Reproduce

This occurs on random guilds, and we have been unable to track down exactly what the needed permission is
The most recent one was https://discord.com/api/v10/guilds/1162866772320465047/voice-states/448893186941911050 but this has been occurring on around 7 of our 600 servers.

Expected Behavior

Discord provides a better error code, such as the error 10065 Unknown Voice State that we also rely on
Alternatively, if this is a permissions issue, the needed permission is documented on the Discord Developer Docs

Current Behavior

We get random Missing Access errors with no documentation as to what the needed permission is

Screenshots/Videos

No response

Client and System Information

Discord.js v14.16.2
Node.js v22.6.0

@net-tech
Copy link

net-tech commented Nov 3, 2024

+1

@thewilloftheshadow
Copy link
Contributor Author

After doing a lot of digging and experimenting, I think that when the user we are fetching is in a VC, the app needs the CONNECT permission on that VC. However, when the user is not in a VC, the API does not error. Logically this makes sense after thinking about it, but it still needs documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants