Browse Source

fix: Use IDiscordClient.GetUserAsync impl in DiscordSocketClient (#2319)

tags/3.7.0
sabihoshi GitHub 3 years ago
parent
commit
f47f3190d0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.WebSocket/DiscordSocketClient.cs

+ 1
- 1
src/Discord.Net.WebSocket/DiscordSocketClient.cs View File

@@ -403,7 +403,7 @@ namespace Discord.WebSocket
/// the snowflake identifier; <c>null</c> if the user is not found.
/// </returns>
public async ValueTask<IUser> GetUserAsync(ulong id, RequestOptions options = null)
=> await ClientHelper.GetUserAsync(this, id, options).ConfigureAwait(false);
=> await ((IDiscordClient)this).GetUserAsync(id, CacheMode.AllowDownload, options).ConfigureAwait(false);
/// <summary>
/// Clears all cached channels from the client.
/// </summary>


Loading…
Cancel
Save