mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-11-25 02:01:28 +00:00
Add created_at properties for Server and User.
This commit is contained in:
@@ -218,3 +218,8 @@ class Server(Hashable):
|
||||
def member_count(self):
|
||||
"""Returns the true member count regardless of it being loaded fully or not."""
|
||||
return self._member_count
|
||||
|
||||
@property
|
||||
def created_at(self):
|
||||
"""Returns the server's creation time in UTC."""
|
||||
return utils.snowflake_time(self.id)
|
||||
|
||||
Reference in New Issue
Block a user