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

This commit is contained in:
sabihoshi
2022-05-24 13:29:16 +08:00
committed by GitHub
parent 54a5af7db4
commit f47f3190d0

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>