getMemberVoiceState

open suspend fun getMemberVoiceState(guildId: Snowflake, userId: Snowflake): VoiceState(source)

Requests the member's VoiceState with the given userId in the Guild with the given guildId.

Throws

if something went wrong while retrieving the member's voice state.

if the VoiceState wasn't present.