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/Presences/Presence.cs

42 lines
963 B
C#
Raw Normal View History

2017-05-14 12:02:51 +00:00
using Maki.Structures.Users;
using Newtonsoft.Json;
namespace Maki.Structures.Presences
{
/// <summary>
/// Discord API Presence structure
/// </summary>
internal struct Presence
{
/// <summary>
/// the user presence is being updated for
/// </summary>
[JsonProperty("user")]
public User User;
/// <summary>
/// roles this user is in
/// </summary>
[JsonProperty("roles")]
public ulong[] Roles;
/// <summary>
/// null, or the user's current activity
/// </summary>
[JsonProperty("game")]
public Game? Game;
/// <summary>
/// id of the guild
/// </summary>
[JsonProperty("guild_id")]
public ulong Guild;
/// <summary>
/// either "idle", "dnd", "online" or "offline"
/// </summary>
[JsonProperty("status")]
public string Status;
}
}