41 lines
963 B
C#
41 lines
963 B
C#
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;
|
|
}
|
|
}
|