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 Voice REST methods #3107

Open
KiloOscarSix opened this issue Feb 5, 2025 · 0 comments
Open

Missing Voice REST methods #3107

KiloOscarSix opened this issue Feb 5, 2025 · 0 comments

Comments

@KiloOscarSix
Copy link

https://discord.com/developers/docs/resources/voice#get-current-user-voice-state
https://discord.com/developers/docs/resources/voice#get-user-voice-state

If the implementation is as simple as,

/// Returns the specified user's voice state in the guild
    pub async fn get_voice_state(&self, guild_id: GuildId, user_id: UserId) -> Result<VoiceState> {
        self.fire(Request {
            body: None,
            multipart: None,
            headers: None,
            method: LightMethod::Get,
            route: Route::GuildVoiceStates { guild_id, user_id },
            params: None,
        })
        .await
    }

I can open a PR after work, however opening this issue in case there are any specific implementation details I'm missing.

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

No branches or pull requests

1 participant