From 44e3423cd921298ff660ee3fed649620ee2ffbcf Mon Sep 17 00:00:00 2001 From: thec0sm0s Date: Fri, 15 May 2020 18:54:43 +0530 Subject: [PATCH] Don't cache guilds by default --- flask_discord/models/user.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flask_discord/models/user.py b/flask_discord/models/user.py index e310954..5272c0b 100644 --- a/flask_discord/models/user.py +++ b/flask_discord/models/user.py @@ -94,14 +94,14 @@ class User(DiscordModelsBase): return self.avatar_hash.startswith("a_") @classmethod - def fetch_from_api(cls, guilds=True, connections=False): + def fetch_from_api(cls, guilds=False, connections=False): """A class method which returns an instance of this model by implicitly making an - API call to Discord. + API call to Discord. The user returned from API will always be cached and update in internal cache. Parameters ---------- guilds : bool - A boolean indicating if user's guilds should be cached or not. Defaults to ``True``. If chose to not + A boolean indicating if user's guilds should be cached or not. Defaults to ``False``. If chose to not cache, user's guilds can always be obtained from :py:func:`flask_discord.Guilds.fetch_from_api()`. connections : bool A boolean indicating if user's connections should be cached or not. Defaults to ``False``. If chose to not