From e4f43dce5b62f9b3a7b53c2ea9537687aa6572c6 Mon Sep 17 00:00:00 2001 From: hlaaftana Date: Fri, 5 Feb 2016 19:58:09 +0200 Subject: [PATCH] Fixed dates in Message and Member --- src/main/groovy/ml/hlaaftana/discordg/objects/Member.groovy | 2 +- src/main/groovy/ml/hlaaftana/discordg/objects/Message.groovy | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/groovy/ml/hlaaftana/discordg/objects/Member.groovy b/src/main/groovy/ml/hlaaftana/discordg/objects/Member.groovy index 22a7a27..54b83ab 100644 --- a/src/main/groovy/ml/hlaaftana/discordg/objects/Member.groovy +++ b/src/main/groovy/ml/hlaaftana/discordg/objects/Member.groovy @@ -39,7 +39,7 @@ class Member extends User{ /** * @return a Date object of when the member joined the server. */ - Date getJoinDate(){ return ConversionUtil.fromJsonDate(this.joinDateRaw) } + Date getJoinDate(){ return ConversionUtil.fromJsonDate(this.rawJoinDate) } /** * @return the roles this member has. */ diff --git a/src/main/groovy/ml/hlaaftana/discordg/objects/Message.groovy b/src/main/groovy/ml/hlaaftana/discordg/objects/Message.groovy index 7b78a24..90e6668 100644 --- a/src/main/groovy/ml/hlaaftana/discordg/objects/Message.groovy +++ b/src/main/groovy/ml/hlaaftana/discordg/objects/Message.groovy @@ -28,7 +28,7 @@ class Message extends DiscordObject{ /** * @return a Date of when the message was created. */ - Date getCreateTime(){ return ConversionUtil.fromJsonDate(this.timestampRaw) } + Date getCreateTime(){ return ConversionUtil.fromJsonDate(this.rawCreateTime) } /** * @return a raw timestamp string of when the message was edited. */ @@ -36,7 +36,7 @@ class Message extends DiscordObject{ /** * @return a Date of when the message was edited. */ - Date getEditTime(){ return ConversionUtil.fromJsonDate(this.editTimeRaw) } + Date getEditTime(){ return ConversionUtil.fromJsonDate(this.rawEditTime) } /** * @return whether or not this message has text to speech. */