From 25e213f1032820a077ee58d06e1ddf2608a08fcd Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Wed, 14 Aug 2024 23:57:13 +0200 Subject: [PATCH] fix: first check, then sleep Co-Authored-By: rand <33885686+byterand@users.noreply.github.com> --- DisCatSharp/Net/Rest/DiscordApiClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DisCatSharp/Net/Rest/DiscordApiClient.cs b/DisCatSharp/Net/Rest/DiscordApiClient.cs index e7a48b1fe9..e003cd49b4 100644 --- a/DisCatSharp/Net/Rest/DiscordApiClient.cs +++ b/DisCatSharp/Net/Rest/DiscordApiClient.cs @@ -7594,7 +7594,7 @@ internal async Task RefreshOAuth2AccessTokenAsync(string ref /// /// The token to revoke. /// The type of token to revoke. - internal Task RevokeOAuth2TokenAsync(string token, string type) + internal async Task RevokeOAuth2TokenAsync(string token, string type) { if (this.Discord != null!) throw new InvalidOperationException("Cannot use oauth2 endpoints with discord client"); @@ -7621,5 +7621,5 @@ internal Task RevokeOAuth2TokenAsync(string token, string type) } #endregion - + }