Browse Source

Fixed braces

tags/1.0-rc
RogueException 8 years ago
parent
commit
336e6d20d9
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/Discord.Net/WebSocket/DiscordSocketClient.cs

+ 2
- 0
src/Discord.Net/WebSocket/DiscordSocketClient.cs View File

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


Loading…
Cancel
Save