using Maki.Structures.Users;
using Newtonsoft.Json;
using System;
namespace Maki.Structures.Guilds
{
///
/// Discord API Guild Member structure
///
internal struct GuildMember
{
///
/// user object
///
[JsonProperty("user")]
public User User;
///
/// this users guild nickname (if one is set)
///
[JsonProperty("nick")]
public string Nickname;
///
/// array of role object id's
///
[JsonProperty("roles")]
public ulong[] Roles;
///
/// date the user joined the guild
///
[JsonProperty("joined_at")]
public DateTime? JoinedAt;
///
/// if the user is deafened
///
[JsonProperty("deaf")]
public bool? IsDeafened;
///
/// if the user is muted
///
[JsonProperty("mute")]
public bool? IsMuted;
///
/// Guild Id (populated in gateway add)
///
[JsonProperty("guild_id")]
public ulong? GuildId;
}
}