Browse Source

Hook LatencyUpdated for ShardedClient.

pull/773/head
AntiTcb 8 years ago
parent
commit
0f6ceb4843
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/Discord.Net.WebSocket/DiscordShardedClient.cs

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

@@ -267,8 +267,9 @@ namespace Discord.WebSocket
}

client.Connected += () => _shardConnectedEvent.InvokeAsync(client);
client.Disconnected += (exception) => _shardDisconnectedEvent.InvokeAsync(client, exception);
client.Disconnected += (exception) => _shardDisconnectedEvent.InvokeAsync(exception, client);
client.Ready += () => _shardReadyEvent.InvokeAsync(client);
client.LatencyUpdated += (oldLatency, newLatency) => _shardLatencyUpdatedEvent.InvokeAsync(oldLatency, newLatency, client);

client.ChannelCreated += (channel) => _channelCreatedEvent.InvokeAsync(channel);
client.ChannelDestroyed += (channel) => _channelDestroyedEvent.InvokeAsync(channel);


Loading…
Cancel
Save