29 lines
675 B
C#
29 lines
675 B
C#
using Maki.Structures.Roles;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Maki.Structures.Guilds
|
|
{
|
|
/// <summary>
|
|
/// Discord API Guild Role structure
|
|
/// </summary>
|
|
internal struct GuildRole
|
|
{
|
|
/// <summary>
|
|
/// Populated in the _CREATE and _UPDATE event
|
|
/// </summary>
|
|
[JsonProperty("role")]
|
|
public Role? Role;
|
|
|
|
/// <summary>
|
|
/// Populated in the _DELETE event
|
|
/// </summary>
|
|
[JsonProperty("role_id")]
|
|
public ulong? RoleId;
|
|
|
|
/// <summary>
|
|
/// Guild Id this role belongs to
|
|
/// </summary>
|
|
[JsonProperty("guild_id")]
|
|
public ulong Guild;
|
|
}
|
|
}
|