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