Skip to content

Commit

Permalink
Fixed dates in Message and Member
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Feb 5, 2016
1 parent 1a9d6e6 commit e4f43dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/groovy/ml/hlaaftana/discordg/objects/Message.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ 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.
*/
String getRawEditTime(){ return this.object["edited_timestamp"] }
/**
* @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.
*/
Expand Down

0 comments on commit e4f43dc

Please sign in to comment.