foxcord/Foxcord/Rest/DiscordRestClient.User.cs

9 lines
279 B
C#
Raw Normal View History

2024-07-02 01:14:46 +02:00
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");
}