From e18fed6310205c19c26a53a74da856686f420241 Mon Sep 17 00:00:00 2001 From: Nadir Chowdhury Date: Thu, 14 Mar 2019 01:22:40 +0000 Subject: [PATCH] Fix imports Removed unnecessary Object import. Added `snowflake_time` and `InvalidArgument` --- discord/invite.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/discord/invite.py b/discord/invite.py index 7b2400a20..7b88ea9c6 100644 --- a/discord/invite.py +++ b/discord/invite.py @@ -24,9 +24,9 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ -from .utils import parse_time, valid_icon_size +from .utils import parse_time, valid_icon_size, snowflake_time from .mixins import Hashable -from .object import Object +from .errors import InvalidArgument from .enums import ChannelType, VerificationLevel, try_enum from collections import namedtuple @@ -79,7 +79,7 @@ class PartialInviteChannel(namedtuple('PartialInviteChannel', 'id name type')): @property def created_at(self): """Returns the channel's creation time in UTC.""" - return utils.snowflake_time(self.id) + return snowflake_time(self.id) class PartialInviteGuild(namedtuple('PartialInviteGuild', 'features icon banner id name splash verification_level')): """Represents a "partial" invite guild. @@ -131,7 +131,7 @@ class PartialInviteGuild(namedtuple('PartialInviteGuild', 'features icon banner @property def created_at(self): """Returns the guild's creation time in UTC.""" - return utils.snowflake_time(self.id) + return snowflake_time(self.id) @property def icon_url(self):