| @@ -13,6 +13,8 @@ namespace Discord.API | |||||
| public uint Color { get; set; } | public uint Color { get; set; } | ||||
| [JsonProperty("hoist")] | [JsonProperty("hoist")] | ||||
| public bool Hoist { get; set; } | public bool Hoist { get; set; } | ||||
| [JsonProperty("mentionable")] | |||||
| public bool Mentionable { get; set; } | |||||
| [JsonProperty("position")] | [JsonProperty("position")] | ||||
| public int Position { get; set; } | public int Position { get; set; } | ||||
| [JsonProperty("permissions"), Int53] | [JsonProperty("permissions"), Int53] | ||||
| @@ -15,6 +15,8 @@ namespace Discord | |||||
| bool IsHoisted { get; } | bool IsHoisted { get; } | ||||
| /// <summary> Returns true if this role is automatically managed by Discord. </summary> | /// <summary> Returns true if this role is automatically managed by Discord. </summary> | ||||
| bool IsManaged { get; } | bool IsManaged { get; } | ||||
| /// <summary> Returns true if this role may be mentioned in messages. </summary> | |||||
| bool IsMentionable { get; } | |||||
| /// <summary> Gets the name of this role. </summary> | /// <summary> Gets the name of this role. </summary> | ||||
| string Name { get; } | string Name { get; } | ||||
| /// <summary> Gets the permissions granted to members of this role. </summary> | /// <summary> Gets the permissions granted to members of this role. </summary> | ||||
| @@ -13,6 +13,7 @@ namespace Discord.Rest | |||||
| public Color Color { get; private set; } | public Color Color { get; private set; } | ||||
| public bool IsHoisted { get; private set; } | public bool IsHoisted { get; private set; } | ||||
| public bool IsManaged { get; private set; } | public bool IsManaged { get; private set; } | ||||
| public bool IsMentionable { get; private set; } | |||||
| public string Name { get; private set; } | public string Name { get; private set; } | ||||
| public GuildPermissions Permissions { get; private set; } | public GuildPermissions Permissions { get; private set; } | ||||
| public int Position { get; private set; } | public int Position { get; private set; } | ||||
| @@ -35,6 +36,7 @@ namespace Discord.Rest | |||||
| Name = model.Name; | Name = model.Name; | ||||
| IsHoisted = model.Hoist; | IsHoisted = model.Hoist; | ||||
| IsManaged = model.Managed; | IsManaged = model.Managed; | ||||
| IsMentionable = model.Mentionable; | |||||
| Position = model.Position; | Position = model.Position; | ||||
| Color = new Color(model.Color); | Color = new Color(model.Color); | ||||
| Permissions = new GuildPermissions(model.Permissions); | Permissions = new GuildPermissions(model.Permissions); | ||||
| @@ -15,6 +15,7 @@ namespace Discord.WebSocket | |||||
| public Color Color { get; private set; } | public Color Color { get; private set; } | ||||
| public bool IsHoisted { get; private set; } | public bool IsHoisted { get; private set; } | ||||
| public bool IsManaged { get; private set; } | public bool IsManaged { get; private set; } | ||||
| public bool IsMentionable { get; private set; } | |||||
| public string Name { get; private set; } | public string Name { get; private set; } | ||||
| public GuildPermissions Permissions { get; private set; } | public GuildPermissions Permissions { get; private set; } | ||||
| public int Position { get; private set; } | public int Position { get; private set; } | ||||
| @@ -38,6 +39,7 @@ namespace Discord.WebSocket | |||||
| Name = model.Name; | Name = model.Name; | ||||
| IsHoisted = model.Hoist; | IsHoisted = model.Hoist; | ||||
| IsManaged = model.Managed; | IsManaged = model.Managed; | ||||
| IsMentionable = model.Mentionable; | |||||
| Position = model.Position; | Position = model.Position; | ||||
| Color = new Color(model.Color); | Color = new Color(model.Color); | ||||
| Permissions = new GuildPermissions(model.Permissions); | Permissions = new GuildPermissions(model.Permissions); | ||||