diff --git a/DiscordClient/DiscordUserClient.cs b/DiscordClient/DiscordUserClient.cs index 5cad50c..751dc01 100644 --- a/DiscordClient/DiscordUserClient.cs +++ b/DiscordClient/DiscordUserClient.cs @@ -19,6 +19,18 @@ public class DiscordUserClient ); } + public async Task GetShortProfile(string userId) + { + string url = $"https://discord.com/api/v9/users/{userId}"; + HttpResponseMessage response = await _httpClient.GetAsync(url); + return await response.Content.ReadFromJsonAsync(); + } + + public async Task MyShortProfile() + { + return await GetShortProfile("@me"); + } + public async Task<( HttpResponseMessage Response, MessageSearchResponse? JsonData