From 32f5de12182e805cc6a3a2592dae05b4f5162dc2 Mon Sep 17 00:00:00 2001 From: jamesbt365 Date: Tue, 9 Apr 2024 22:09:43 +0100 Subject: [PATCH] Correct documentation for `UserId::to_user` (#2809) The documentation was never updated after #2662 removed the user cache. --- src/model/user.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/model/user.rs b/src/model/user.rs index 7ad004242b..badc9bd61c 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -679,13 +679,8 @@ impl UserId { self.direct_message(http, builder).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 ///