diff --git a/src/Discord.Net/API/Common.cs b/src/Discord.Net/API/Common.cs index f05b829ca..508bb1df4 100644 --- a/src/Discord.Net/API/Common.cs +++ b/src/Discord.Net/API/Common.cs @@ -271,6 +271,8 @@ namespace Discord.API public uint? Color; [JsonProperty("id")] public string Id; + [JsonProperty("managed")] + public bool? Managed; } //Invites diff --git a/src/Discord.Net/Models/Role.cs b/src/Discord.Net/Models/Role.cs index d6484a866..69fe364d6 100644 --- a/src/Discord.Net/Models/Role.cs +++ b/src/Discord.Net/Models/Role.cs @@ -13,11 +13,12 @@ namespace Discord /// Returns the name of this role. public string Name { get; private set; } /// If true, this role is displayed isolated from other users. - public bool Hoist { get; private set; } + public bool IsHoisted { get; private set; } /// Returns the position of this channel in the role list for this server. public int Position { get; private set; } /// Returns the color of this role. public PackedColor Color { get; private set; } + public bool IsManaged { get; private set; } /// Returns the the permissions contained by this role. public PackedServerPermissions Permissions { get; } @@ -55,7 +56,9 @@ namespace Discord if (model.Name != null) Name = model.Name; if (model.Hoist != null) - Hoist = model.Hoist.Value; + IsHoisted = model.Hoist.Value; + if (model.Managed != null) + IsManaged = model.Managed.Value; if (model.Position != null && !IsEveryone) Position = model.Position.Value; if (model.Color != null)