Archived
1
0
Fork 0
This repository has been archived on 2024-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
maki/Maki/Structures/Guilds/GuildMember.cs

54 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;
}
}