mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Absolute import some circular dependencies to appease Python 3.4.
This commit is contained in:
1 parent
a1c81419b7
commit
79a49f9145
14 files changed
+108
-88
No files matched your search
+2
-2
@@ -23,7 +23,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
"""
|
||||
|
||||
from . import utils
|
||||
import discord.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 utils.snowflake_time(self.id)
|
||||
return discord.utils.snowflake_time(self.id)
|
||||
Reference in new issue
Block a user