Browse Source

Fixed User.Name

tags/docs-0.9
Brandon Smith 9 years ago
parent
commit
83c7725b4b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/Models/User.cs

+ 1
- 1
src/Discord.Net/Models/User.cs View File

@@ -18,7 +18,7 @@ namespace Discord
/// <summary> Returns the unique identifier for this user. </summary> /// <summary> Returns the unique identifier for this user. </summary>
public string Id { get; } public string Id { get; }
/// <summary> Returns the name of this user. </summary> /// <summary> Returns the name of this user. </summary>
public string Name => Memberships.Where(x => x.GameId != null).Select(x => x.GameId).FirstOrDefault();
public string Name => Memberships.Where(x => x.Name != null).Select(x => x.Name).FirstOrDefault();
/// <summary> Returns the email for this user. </summary> /// <summary> Returns the email for this user. </summary>
/// <remarks> This field is only ever populated for the current logged in user. </remarks> /// <remarks> This field is only ever populated for the current logged in user. </remarks>


Loading…
Cancel
Save