Skip to content

Commit

Permalink
Correct docs for UserId::to_user
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbt365 committed Mar 20, 2024
1 parent 4b6fe7a commit 4947fd4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/model/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,13 +643,8 @@ impl UserId {
cache_http.http().create_private_channel(&map).await
}

/// First attempts to find a [`User`] by its Id in the cache, upon failure requests it via the
/// REST API.
///
/// **Note**: If the cache is not enabled, REST API will be used only.
///
/// **Note**: If the cache is enabled, you might want to enable the `temp_cache` feature to
/// cache user data retrieved by this function for a short duration.
/// First attempts to find a [`User`] by its Id in the `temp_cache` if enabled,
/// upon failure requests it via the REST API.
///
/// # Errors
///
Expand Down

0 comments on commit 4947fd4

Please sign in to comment.