diff --git a/README.md b/README.md index 76ec6a169..e605085de 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# Discord.Net v0.9.0-rc4 +# Discord.Net v0.9.1 [![Build status](https://ci.appveyor.com/api/projects/status/p0n69xhqgmoobycf/branch/master?svg=true)](https://ci.appveyor.com/project/foxbot/discord-net/branch/master) An unofficial .Net API Wrapper for the Discord client (http://discordapp.com). -Check out the [documentation](https://discordnet.readthedocs.org/en/latest/) or join the [Discord API Chat](https://discord.gg/0SBTUU1wZTVjAMPx). +Check out the [documentation](http://rtd.discord.foxbot.me/en/docs-dev/index.html) or join the [Discord API Chat](https://discord.gg/0SBTUU1wZTVjAMPx). ##### Warning: Some of the documentation is outdated. It's current being rewritten. Until that's done, feel free to use my [DiscordBot](https://github.com/RogueException/DiscordBot) repo for reference. diff --git a/src/Discord.Net/API/Client/Common/Member.cs b/src/Discord.Net/API/Client/Common/Member.cs index 1af23c207..297b75d8c 100644 --- a/src/Discord.Net/API/Client/Common/Member.cs +++ b/src/Discord.Net/API/Client/Common/Member.cs @@ -10,5 +10,7 @@ namespace Discord.API.Client public DateTime? JoinedAt { get; set; } [JsonProperty("roles"), JsonConverter(typeof(LongStringArrayConverter))] public ulong[] Roles { get; set; } + [JsonProperty("nick")] + public string Nick { get; set; } = ""; } } diff --git a/src/Discord.Net/Models/User.cs b/src/Discord.Net/Models/User.cs index 3e431ac58..b2ab47135 100644 --- a/src/Discord.Net/Models/User.cs +++ b/src/Discord.Net/Models/User.cs @@ -58,6 +58,8 @@ namespace Discord public string Name { get; private set; } /// Gets an id uniquely identifying from others with the same name. public ushort Discriminator { get; private set; } + /// Gets a user's nickname in a server + public string Nickname { get; internal set; } /// Gets the unique identifier for this user's current avatar. public string AvatarId { get; private set; } /// Gets the name of the game this user is currently playing. @@ -175,6 +177,8 @@ namespace Discord JoinedAt = model.JoinedAt.Value; if (model.Roles != null) UpdateRoles(model.Roles.Select(x => Server.GetRole(x))); + if (model.Nick != "") + Nickname = model.Nick; } internal void Update(ExtendedMember model) {