pub async fn voice_state(
        &self,
        channel_id: ChannelId,
        user_id: UserId,
    ) -> Result<Option<Arc<CachedVoiceState>>> {
        Ok(self
            .0
            .voice_states
            .lock()
            .await
            .get(&(channel_id, user_id))
            .cloned())
    }
/// Gets a voice state by channel ID and user ID.
///
/// This is an O(1) operation.
Gets a voice state by channel ID and user ID.
This is an O(1) operation.
Gets a voice state by channel ID and user ID . This is an O ( 1 ) operation .
pub async fn voice_state(
        &self,
        channel_id: ChannelId,
        user_id: UserId,
    ) -> Result<Option<Arc<CachedVoiceState>>> {
        Ok(self
            .0
            .voice_states
            .lock()
            .await
            .get(&(channel_id, user_id))
            .cloned())
    }
pub async fn voice_state ( & self , channel_id : ChannelId , user_id : UserId , ) -> Result < Option < Arc < CachedVoiceState > > > { Ok ( self . 0 . voice_states . lock ( ) . await . get ( & ( channel_id , user_id ) ) . cloned ( ) ) }
Gets a voice state by channel ID and user ID.
Gets a voice state by channel ID and user ID .
&self
channel_id
ChannelId
user_id
UserId
&self
channel_id
ChannelId
user_id
UserId