diff --git a/src/Discord.Net/API/Client/Common/UserReference.cs b/src/Discord.Net/API/Client/Common/UserReference.cs
index f2223df87..24dc91d52 100644
--- a/src/Discord.Net/API/Client/Common/UserReference.cs
+++ b/src/Discord.Net/API/Client/Common/UserReference.cs
@@ -13,5 +13,7 @@ namespace Discord.API.Client
public ushort? Discriminator { get; set; }
[JsonProperty("avatar")]
public string Avatar { get; set; }
+ [JsonProperty("bot")]
+ public bool? Bot { get; set; }
}
}
diff --git a/src/Discord.Net/Models/User.cs b/src/Discord.Net/Models/User.cs
index 09735d71c..3e431ac58 100644
--- a/src/Discord.Net/Models/User.cs
+++ b/src/Discord.Net/Models/User.cs
@@ -62,6 +62,8 @@ namespace Discord
public string AvatarId { get; private set; }
/// Gets the name of the game this user is currently playing.
public string CurrentGame { get; internal set; }
+ /// Determines whether this user is a Bot account.
+ public bool IsBot { get; internal set; }
/// Gets the current status for this user.
public UserStatus Status { get; internal set; }
/// Gets the datetime that this user joined this server.
@@ -160,6 +162,9 @@ namespace Discord
Discriminator = model.Discriminator.Value;
if (model.Avatar != null)
AvatarId = model.Avatar;
+ if (model.Bot != null)
+ IsBot = model.Bot.Value;
+
}
internal void Update(APIMember model)
{
diff --git a/src/Discord.Net/project.json b/src/Discord.Net/project.json
index 565bc2e86..fd8ac91ed 100644
--- a/src/Discord.Net/project.json
+++ b/src/Discord.Net/project.json
@@ -1,5 +1,5 @@
{
- "version": "0.9.0-rc3-3",
+ "version": "0.9.1",
"description": "An unofficial .Net API wrapper for the Discord client.",
"authors": [
"RogueException"