Browse Source

Move line back to where it was

pull/1851/head
Paulo 4 years ago
parent
commit
c16859036f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/Discord.Net.WebSocket/DiscordSocketClient.cs

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

@@ -1234,7 +1234,7 @@ namespace Discord.WebSocket

var data = (payload as JToken).ToObject<API.Message>(_serializer);
var channel = State.GetChannel(data.ChannelId) as ISocketMessageChannel;
SocketUser author;
var guild = (channel as SocketGuildChannel)?.Guild;
if (guild != null && !guild.IsSynced)
{
@@ -1255,6 +1255,7 @@ namespace Discord.WebSocket
}
}

SocketUser author;
if (guild != null)
{
if (data.WebhookId.IsSpecified)


Loading…
Cancel
Save