Don't cache guilds by default

This commit is contained in:
thec0sm0s
2020-05-15 18:54:43 +05:30
parent 252506e16c
commit 44e3423cd9

View File

@@ -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