34 lines
741 B
C#
34 lines
741 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace Maki.Structures.Users
|
|
{
|
|
/// <summary>
|
|
/// Discord API Permission Overwrite structure
|
|
/// </summary>
|
|
internal struct PermissionOverwrite
|
|
{
|
|
/// <summary>
|
|
/// role or user id
|
|
/// </summary>
|
|
[JsonProperty("id")]
|
|
public ulong Id;
|
|
|
|
/// <summary>
|
|
/// either 'role' or 'member'
|
|
/// </summary>
|
|
[JsonProperty("type")]
|
|
public string Type;
|
|
|
|
/// <summary>
|
|
/// permission bit set
|
|
/// </summary>
|
|
[JsonProperty("allow")]
|
|
public int Allow;
|
|
|
|
/// <summary>
|
|
/// permission bit set
|
|
/// </summary>
|
|
[JsonProperty("deny")]
|
|
public int Deny;
|
|
}
|
|
}
|