Don't construct messages from embeds

This commit is contained in:
abalabahaha
2016-06-01 15:42:35 -07:00
parent 1c8e773700
commit 0128a88e25
2 changed files with 4 additions and 0 deletions

View File

@@ -1823,6 +1823,8 @@ var InternalClient = (function () {
data.mentions = data.mentions || msg.mentions;
data.author = data.author || msg.author;
msg = new _StructuresMessage2["default"](msg, channel, client);
} else if (!data.author || !data.content) {
break;
}
var nmsg = new _StructuresMessage2["default"](data, channel, client);
client.emit("messageUpdated", msg, nmsg);

View File

@@ -1595,6 +1595,8 @@ export default class InternalClient {
data.mentions = data.mentions || msg.mentions;
data.author = data.author || msg.author;
msg = new Message(msg, channel, client);
} else if (!data.author || !data.content) {
break;
}
var nmsg = new Message(data, channel, client);
client.emit("messageUpdated", msg, nmsg);