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/embeds.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/embeds.py')
| -rw-r--r-- | discord/embeds.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/discord/embeds.py b/discord/embeds.py index cd36600e..f73ac6ef 100644 --- a/discord/embeds.py +++ b/discord/embeds.py @@ -26,8 +26,7 @@ DEALINGS IN THE SOFTWARE. import datetime -import discord.utils - +from . import utils from .colour import Colour class _EmptyEmbed: @@ -129,7 +128,7 @@ class Embed: pass try: - self._timestamp = discord.utils.parse_time(data['timestamp']) + self._timestamp = utils.parse_time(data['timestamp']) except KeyError: pass |