mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 08:56:19 +00:00
Refactor AsyncIter to use 3.6+ asynchronous generators
This commit is contained in:
@ -24,8 +24,8 @@ DEALINGS IN THE SOFTWARE.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from . import utils
|
||||
from .mixins import Hashable
|
||||
from .utils import snowflake_time
|
||||
|
||||
from typing import (
|
||||
SupportsInt,
|
||||
@ -89,4 +89,7 @@ class Object(Hashable):
|
||||
@property
|
||||
def created_at(self) -> datetime.datetime:
|
||||
""":class:`datetime.datetime`: Returns the snowflake's creation time in UTC."""
|
||||
return utils.snowflake_time(self.id)
|
||||
return snowflake_time(self.id)
|
||||
|
||||
|
||||
OLDEST_OBJECT = Object(id=0)
|
||||
|
Reference in New Issue
Block a user