Browse Source

fix: Use IDiscordClient.GetUserAsync impl in DiscordSocketClient

pull/2319/head
sabihoshi 3 years ago
parent
commit
d4714598e1
No known key found for this signature in database GPG Key ID: 3D3363C876D31ACA
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. /// the snowflake identifier; <c>null</c> if the user is not found.
/// </returns> /// </returns>
public async ValueTask<IUser> GetUserAsync(ulong id, RequestOptions options = null) 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> /// <summary>
/// Clears all cached channels from the client. /// Clears all cached channels from the client.
/// </summary> /// </summary>


Loading…
Cancel
Save