Skip to content

Commit

Permalink
fix: first check, then sleep
Browse files Browse the repository at this point in the history
Co-Authored-By: rand <[email protected]>
  • Loading branch information
Lulalaby and byterand committed Aug 14, 2024
1 parent 1a3318e commit 25e213f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DisCatSharp/Net/Rest/DiscordApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7594,7 +7594,7 @@ internal async Task<DiscordAccessToken> RefreshOAuth2AccessTokenAsync(string ref
/// </summary>
/// <param name="token">The token to revoke.</param>
/// <param name="type">The type of token to revoke.</param>
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");
Expand All @@ -7621,5 +7621,5 @@ internal Task RevokeOAuth2TokenAsync(string token, string type)
}

#endregion

}

0 comments on commit 25e213f

Please sign in to comment.