getMemberVoiceStateOrNull

abstract suspend fun getMemberVoiceStateOrNull(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.