Browse Source

Fix discord.Object documentation.

pull/220/merge
Rapptz 9 years ago
parent
commit
bbc78b29ae
  1. 4
      discord/object.py

4
discord/object.py

@ -29,7 +29,7 @@ class Object:
"""Represents a generic Discord object.
The purpose of this class is to allow you to create 'miniature'
versions of data classes if you want to pass in just an ID. All functions
versions of data classes if you want to pass in just an ID. Most functions
that take in a specific data class with an ID can also take in this class
as a substitute instead. Note that even though this is the case, not all
objects (if any) actually inherit from this class.
@ -50,5 +50,5 @@ class Object:
@property
def created_at(self):
"""Returns the private channel's creation time in UTC."""
"""Returns the snowflake's creation time in UTC."""
return utils.snowflake_time(self.id)

Loading…
Cancel
Save