From 5e54ae9fdcf0dccae8337dd4a394007701dddbd6 Mon Sep 17 00:00:00 2001 From: mjk134 <57556877+mjk134@users.noreply.github.com> Date: Tue, 12 Jul 2022 17:52:15 +0000 Subject: feat(client): Add client caching --- discord/user.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'discord/user.py') diff --git a/discord/user.py b/discord/user.py index ff86c26..e2625bc 100644 --- a/discord/user.py +++ b/discord/user.py @@ -3,7 +3,7 @@ from discord.premium_type import PremiumType class User: - _id: int + _id: str _username: str _discriminator: str _avatar: str @@ -114,3 +114,6 @@ class User: setattr(self, f"_{k}", PremiumType(data[k])) else: setattr(self, f"_{k}", data[k]) + + def __repr__(self) -> str: + return f"" -- cgit 1.4.1-2-gfad0 Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/linkify/Readme
blob: c4625a9d9ce3b4dc05a51b80d63e65bb03e55d00 (plain) (blame)
1
2
3