feat: remove DiscordRequestObserver

This commit is contained in:
spiral
2021-11-02 05:34:17 -04:00
parent f78d4844e2
commit 14b0e98791
6 changed files with 87 additions and 210 deletions

View File

@@ -18,8 +18,11 @@ namespace Myriad.Rest
public DiscordApiClient(string token, ILogger logger)
{
_client = new BaseRestClient(UserAgent, token, logger);
_client.OnResponseEvent += OnResponseEvent;
}
public EventHandler<(string, int, long)> OnResponseEvent;
public Task<GatewayInfo> GetGateway() =>
_client.Get<GatewayInfo>("/gateway", ("GetGateway", default))!;