[Feature] SentRequest event (#2870)

This commit is contained in:
Mihail Gribkov
2024-03-04 21:36:11 +03:00
committed by GitHub
parent fa51f0a86f
commit fc2fc87708
2 changed files with 10 additions and 0 deletions

View File

@@ -431,6 +431,8 @@ namespace Discord.WebSocket
return Task.Delay(0);
};
client.SentRequest += (method, endpoint, millis) => _sentRequest.InvokeAsync(method, endpoint, millis);
client.Connected += () => _shardConnectedEvent.InvokeAsync(client);
client.Disconnected += (exception) => _shardDisconnectedEvent.InvokeAsync(exception, client);
client.Ready += () => _shardReadyEvent.InvokeAsync(client);