Browse Source

Added a serverless client.GetUser

tags/docs-0.9
RogueException 9 years ago
parent
commit
579e305c94
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/Discord.Net/DiscordClient.Users.cs

+ 4
- 0
src/Discord.Net/DiscordClient.Users.cs View File

@@ -144,6 +144,10 @@ namespace Discord
internal Users Users => _users; internal Users Users => _users;
private readonly Users _users; private readonly Users _users;


public GlobalUser GetUser(long userId)
{
return _globalUsers[userId];
}
/// <summary> Returns the user with the specified id, along with their server-specific data, or null if none was found. </summary> /// <summary> Returns the user with the specified id, along with their server-specific data, or null if none was found. </summary>
public User GetUser(Server server, long userId) public User GetUser(Server server, long userId)
{ {


Loading…
Cancel
Save