diff options
author | mjk134 <57556877+mjk134@users.noreply.github.com> | 2022-07-12 17:52:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 17:52:15 +0000 |
commit | 5e54ae9fdcf0dccae8337dd4a394007701dddbd6 (patch) | |
tree | 6e4272d84c4f4d7d0d19f128ea1ddc93f1c39b95 /discord/user.py | |
parent | 8ee52e6a348ad6ee32728c8070cc4dbb2a5caa2c (diff) | |
download | discobra-5e54ae9fdcf0dccae8337dd4a394007701dddbd6.tar.gz |
feat(client): Add client caching
Diffstat (limited to 'discord/user.py')
-rw-r--r-- | discord/user.py | 5 |
1 files changed, 4 insertions, 1 deletions
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"<User id={self.id} username={self.username} discriminator={self.discriminator}>" |