Fixed braces

This commit is contained in:
RogueException
2016-09-20 17:46:12 -03:00
parent 5f5974fe97
commit 336e6d20d9

View File

@@ -1262,10 +1262,12 @@ namespace Discord.WebSocket
after = channel.CreateMessage(author, data);
}
if (after != null)
{
if (before == null)
await _messageUpdatedEvent.InvokeAsync(Optional.Create<IMessage>(), after).ConfigureAwait(false);
else
await _messageUpdatedEvent.InvokeAsync(Optional.Create<IMessage>(before), after).ConfigureAwait(false);
}
}
else
{