mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2025-12-10 12:29:30 +02:00
Actually cache the user when they're fetch from API
This commit is contained in:
@@ -110,6 +110,7 @@ class User(DiscordModelsBase):
|
|||||||
[cls, ...]
|
[cls, ...]
|
||||||
List of instances of this model when many of these models exist."""
|
List of instances of this model when many of these models exist."""
|
||||||
self = super().fetch_from_api()
|
self = super().fetch_from_api()
|
||||||
|
app.discord.users_cache.update({self.id: self})
|
||||||
session["DISCORD_USER_ID"] = self.id
|
session["DISCORD_USER_ID"] = self.id
|
||||||
|
|
||||||
if guilds:
|
if guilds:
|
||||||
|
|||||||
Reference in New Issue
Block a user