diff --git a/Hiven/Objects/message_update.py b/Hiven/Objects/message_update.py index 211cbf8..dc2a269 100644 --- a/Hiven/Objects/message_update.py +++ b/Hiven/Objects/message_update.py @@ -1,3 +1,6 @@ +import datetime + + class message_update_obj: def __init__(self, ctx): self.message = self.Message(ctx) @@ -9,6 +12,7 @@ class Message: def __init__(self, ctx): self.content = ctx['content'] self.timestamp = ctx['timestamp'] + self.time = datetime.datetime.fromtimestamp(float(ctx['timestamp']) / 1e3) self.id = ctx['id'] self.mentions = ctx['mentions'] diff --git a/Hiven/client.py b/Hiven/client.py index 71b83ac..ea28dc9 100644 --- a/Hiven/client.py +++ b/Hiven/client.py @@ -4,6 +4,7 @@ # Should we make this async??? + class Bot: def __init__(self, token, debug=False, output=False): self.restURL = "https://api.hiven.io/v1"