Add mentionable property to ModifyGuildRoleParams

Allows roles to be configured to be mentionable, fixes #424
This commit is contained in:
FiniteReality
2016-12-18 17:23:41 +00:00
parent fc4a0bbe8b
commit 2e2fbaa5f3
3 changed files with 10 additions and 0 deletions

View File

@@ -16,5 +16,7 @@ namespace Discord.API.Rest
public Optional<uint> Color { get; set; }
[JsonProperty("hoist")]
public Optional<bool> Hoist { get; set; }
[JsonProperty("mentionable")]
public Optional<bool> Mentionable { get; set; }
}
}

View File

@@ -47,5 +47,12 @@
/// If this role is the EveryoneRole, this value may not be set.
/// </remarks>
public Optional<bool> Hoist { get; set; }
/// <summary>
/// Whether or not this role can be mentioned.
/// </summary>
/// <remarks>
/// If this role is the EveryoneRole, this value may not be set.
/// </remarks>
public Optional<bool> Mentionable { get; set; }
}
}