Function wicrs_server::api::get_channel[][src]

pub async fn get_channel(
    user_id: &ID,
    hub_id: &ID,
    channel_id: &ID
) -> Result<Channel>

Gets a channel’s information.

Arguments

  • user_id - ID of the user that is requesting the information.
  • hub_id - ID of the hub the channel is in.
  • channel_id - ID of the channel to get.

Errors

This function may return an error for any of the following reasons:

  • The user is not in the hub.
  • The hub could not be loaded for any of the reasons outlined by Hub::load.
  • The channel does not exist.