Member role *should* be used properly across the API

The Client now SHOULD add roles properly to members, as they leave it up
to the Server class.
This commit is contained in:
hydrabolt
2015-10-03 20:18:49 +01:00
parent a10f19a7a7
commit 4e117b85d9
9 changed files with 360 additions and 28 deletions

View File

@@ -20,7 +20,7 @@ var Message = (function () {
this.editedTimestamp = data.edited_timestamp;
this.content = data.content.trim();
this.channel = channel;
this.author = author;
this.author = this.channel.server.getMember("id", author.id);
this.attachments = data.attachments;
}