mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-16 10:40:12 +00:00
feat: remove DiscordRequestObserver
This commit is contained in:
parent
f78d4844e2
commit
14b0e98791
6 changed files with 87 additions and 210 deletions
|
|
@ -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))!;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue