Function wicrs_server::api::get_message [−][src]
pub async fn get_message(
user_id: &str,
hub_id: ID,
channel_id: ID,
message_id: ID
) -> Result<SignedMessage>
Expand description
Gets a message from a text channel in a hub.
Arguments
user_id
- ID of the user who is requesting the message.hub_id
- ID of the hub where the message is located.channel_id
- ID of the channel where the message is located.message_id
- ID of the message to retreive.
Errors
This function may return an error for any of the following reasons:
- The user is not in the hub.
- The channel could not be found in the hub.
- The message could not be found.
- The channel could not be gotten for any of the reasons outlined by
Hub::get_channel
. - The hub could not be loaded for any of the reasons outlined by
Hub::load
.