From 0163c82197f8a874f62aed9ade26b648a4c2bc91 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Thu, 21 Jul 2022 11:36:34 +0100 Subject: [PATCH] Return DiscordUser, not DiscordGuild, for NormalizeClientAsync --- X10D.DSharpPlus/src/DiscordUserExtensions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/X10D.DSharpPlus/src/DiscordUserExtensions.cs b/X10D.DSharpPlus/src/DiscordUserExtensions.cs index 248a66c..b67aca2 100644 --- a/X10D.DSharpPlus/src/DiscordUserExtensions.cs +++ b/X10D.DSharpPlus/src/DiscordUserExtensions.cs @@ -1,4 +1,4 @@ -using DSharpPlus; +using DSharpPlus; using DSharpPlus.Entities; using DSharpPlus.Exceptions; @@ -136,7 +136,7 @@ public static class DiscordUserExtensions /// -or- /// is /// - public static async Task NormalizeClientAsync(this DiscordUser user, DiscordClient client) + public static async Task NormalizeClientAsync(this DiscordUser user, DiscordClient client) { #if NET6_0_OR_GREATER ArgumentNullException.ThrowIfNull(user); @@ -153,6 +153,6 @@ public static class DiscordUserExtensions } #endif - return await client.GetGuildAsync(user.Id); + return await client.GetUserAsync(user.Id); } }