Fixed errors

This commit is contained in:
RogueException
2016-10-04 10:21:41 -03:00
parent d443ccca13
commit 0a09b0deb5

View File

@@ -1159,7 +1159,7 @@ namespace Discord.WebSocket
if (author != null)
{
var msg = SocketMessage.Create(this, State, author, data);
var msg = SocketMessage.Create(this, State, author, channel, data);
SocketChannelHelper.AddMessage(channel, this, msg);
await _messageReceivedEvent.InvokeAsync(msg).ConfigureAwait(false);
}
@@ -1210,7 +1210,7 @@ namespace Discord.WebSocket
if (author == null)
author = SocketSimpleUser.Create(this, State, data.Author.Value);
after = SocketMessage.Create(this, State, author, data);
after = SocketMessage.Create(this, State, author, channel, data);
}
if (before != null)
await _messageUpdatedEvent.InvokeAsync(before, after).ConfigureAwait(false);