using Maki.Structures.Users;
using Newtonsoft.Json;
using System;
namespace Maki.Structures.Guilds
{
///
/// Discord API Guild Integration structure
///
internal struct GuildIntegration
{
///
/// integration id
///
[JsonProperty("id")]
public ulong Id;
///
/// integration name
///
[JsonProperty("name")]
public string Name;
///
/// integration type (twitch, youtube, etc)
///
[JsonProperty("type")]
public string Type;
///
/// is this integration enabled
///
[JsonProperty("enabled")]
public bool IsEnabled;
///
/// is this integration syncing
///
[JsonProperty("syncing")]
public bool IsSyncing;
///
/// id that this integration uses for "subscribers"
///
[JsonProperty("role_id")]
public ulong RoleId;
///
/// the behavior of expiring subscribers
///
[JsonProperty("expire_behavior")]
public int ExpireBehaviour;
///
/// the grace period before expiring subscribers
///
[JsonProperty("expire_grace_period")]
public int ExpireGracePeriod;
///
/// user for this integration
///
[JsonProperty("user")]
public User User;
///
/// integration account information
///
[JsonProperty("account")]
public GuildIntegrationAccount Account;
///
/// when this integration was last synced
///
[JsonProperty("synced_at")]
public DateTime LastSync;
}
}