Archived
1
0
Fork 0
This repository has been archived on 2024-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
maki/Maki/Structures/Roles/Role.cs

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;
}
}