aboutsummaryrefslogtreecommitdiff
path: root/discord/object.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-03 08:41:44 -0500
committerRapptz <[email protected]>2017-01-03 09:52:10 -0500
commit98b981848d757e8fb66d4a874a3107c0e8de2963 (patch)
treef0969e87a7835b6b253fa1f47381ba4045b1ae2a /discord/object.py
parentMove away from StateContext and use ConnectionState directly. (diff)
downloaddiscord.py-98b981848d757e8fb66d4a874a3107c0e8de2963.tar.xz
discord.py-98b981848d757e8fb66d4a874a3107c0e8de2963.zip
Move message creation to a factory method inside ConnectionState.
Diffstat (limited to 'discord/object.py')
-rw-r--r--discord/object.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/object.py b/discord/object.py
index 6398ac8e..ad201d04 100644
--- a/discord/object.py
+++ b/discord/object.py
@@ -23,7 +23,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""
-import discord.utils
+from . import utils
class Object:
"""Represents a generic Discord object.
@@ -51,4 +51,4 @@ class Object:
@property
def created_at(self):
"""Returns the snowflake's creation time in UTC."""
- return discord.utils.snowflake_time(self.id)
+ return utils.snowflake_time(self.id)