58 lines
1.3 KiB
C#
58 lines
1.3 KiB
C#
using Newtonsoft.Json;
|
|
|
|
namespace Maki.Structures.Roles
|
|
{
|
|
/// <summary>
|
|
/// Discord API Role structure
|
|
/// </summary>
|
|
internal struct Role
|
|
{
|
|
/// <summary>
|
|
/// role id
|
|
/// </summary>
|
|
[JsonProperty("id")]
|
|
public ulong Id;
|
|
|
|
/// <summary>
|
|
/// role name
|
|
/// </summary>
|
|
[JsonProperty("name")]
|
|
public string Name;
|
|
|
|
/// <summary>
|
|
/// integer representation of hexadecimal color code
|
|
/// </summary>
|
|
[JsonProperty("color")]
|
|
public uint? Colour;
|
|
|
|
/// <summary>
|
|
/// if this role is pinned in the user listing
|
|
/// </summary>
|
|
[JsonProperty("hoist")]
|
|
public bool? IsHoisted;
|
|
|
|
/// <summary>
|
|
/// position of this role
|
|
/// </summary>
|
|
[JsonProperty("position")]
|
|
public int? Position;
|
|
|
|
/// <summary>
|
|
/// permission bit set
|
|
/// </summary>
|
|
[JsonProperty("permissions")]
|
|
public int? Permissions;
|
|
|
|
/// <summary>
|
|
/// whether this role is managed by an integration
|
|
/// </summary>
|
|
[JsonProperty("managed")]
|
|
public bool? IsManaged;
|
|
|
|
/// <summary>
|
|
/// whether this role is mentionable
|
|
/// </summary>
|
|
[JsonProperty("mentionable")]
|
|
public bool? IsMentionable;
|
|
}
|
|
}
|