foxcord/Foxcord/Rest/DiscordRestClient.User.cs

9 lines
No EOL
279 B
C#

using Foxcord.Discord;
namespace Foxcord.Rest;
public partial class DiscordRestClient
{
public Task<User> GetUserAsync(ulong id) => RequestAsync<User>(HttpMethod.Get, $"/users/{id}");
public Task<User> GetMeAsync() => RequestAsync<User>(HttpMethod.Get, "/users/@me");
}