From 22696b94aa09797460546d687d453533221443e2 Mon Sep 17 00:00:00 2001 From: jamesbt365 Date: Wed, 20 Mar 2024 00:33:41 +0000 Subject: [PATCH] Correct docs for `UserId::to_user` --- 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 b038543265c..96f093707d7 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -659,13 +659,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 ///