Default message.content to normal message

This commit is contained in:
abalabahaha
2016-09-18 09:46:46 +09:00
parent 34323c869e
commit 53ecaab12a
2 changed files with 4 additions and 5 deletions

View File

@@ -63,9 +63,8 @@ var Message = (function (_Equality) {
this.author = client.internal.users.add(new _User2["default"](data.author, client));
}
if (this.type === 0) {
this.content = data.content;
} else if (this.type === 1) {
this.content = data.content;
if (!this.type) {} else if (this.type === 1) {
this.content = this.author.mention() + " added <@" + data.mentions[0].id + ">.";
} else if (this.type === 2) {
if (this.author.id === data.mentions[0].id) {