diff options
| author | Rapptz <[email protected]> | 2017-01-03 08:41:44 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-03 09:52:10 -0500 |
| commit | 98b981848d757e8fb66d4a874a3107c0e8de2963 (patch) | |
| tree | f0969e87a7835b6b253fa1f47381ba4045b1ae2a /discord/object.py | |
| parent | Move away from StateContext and use ConnectionState directly. (diff) | |
| download | discord.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.py | 4 |
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) |