mirror of
https://github.com/yawaflua/spworlds-csharp-library.git
synced 2025-12-10 04:29:25 +02:00
da
This commit is contained in:
@@ -81,7 +81,7 @@ public class SPWorlds
|
|||||||
public async Task<User> GetUser(string discordId)
|
public async Task<User> GetUser(string discordId)
|
||||||
{
|
{
|
||||||
string userName = (string)JsonObject.Parse(await SendRequest($"users/{discordId}"))["username"];
|
string userName = (string)JsonObject.Parse(await SendRequest($"users/{discordId}"))["username"];
|
||||||
User user = new(userName);
|
User user = await User.CreateUser(userName);
|
||||||
return (User)user;
|
return (User)user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user