Webpack build for branch master: 67c239b33f

This commit is contained in:
Travis CI 2017-09-08 21:21:51 +00:00
parent 00b24a8206
commit beb389788c
2 changed files with 4 additions and 4 deletions

View file

@ -12663,7 +12663,7 @@ class Message extends Base {
* The author of the message
* @type {User}
*/
this.author = this.client.users.create(data.author);
this.author = this.client.users.create(data.author, !data.webhook_id);
/**
* Represents the author of the message as a guild member
@ -25781,12 +25781,12 @@ class MessageCreateAction extends Action {
handle(data) {
const client = this.client;
const channel = client.channels.get(data.channel_id);
const user = client.users.get(data.author.id);
if (channel) {
const existing = channel.messages.get(data.id);
if (existing) return { message: existing };
const member = channel.guild ? channel.guild.member(user) : null;
const message = channel.messages.create(data);
const user = message.author;
const member = channel.guild ? channel.guild.member(user) : null;
channel.lastMessageID = data.id;
channel.lastMessage = message;
if (user) {

File diff suppressed because one or more lines are too long