Fix imports
Removed unnecessary Object import. Added `snowflake_time` and `InvalidArgument`
This commit is contained in:
parent
0513ea1f53
commit
e18fed6310
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user