You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1023 B
31 lines
1023 B
4 years ago
|
#pragma warning disable CS1591
|
||
|
using Newtonsoft.Json;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace Discord.API
|
||
|
{
|
||
|
internal class Presence
|
||
|
{
|
||
|
[JsonProperty("user")]
|
||
|
public User User { get; set; }
|
||
|
[JsonProperty("guild_id")]
|
||
|
public Optional<ulong> GuildId { get; set; }
|
||
|
[JsonProperty("status")]
|
||
|
public UserStatus Status { get; set; }
|
||
|
[JsonProperty("game")]
|
||
|
public Game Game { get; set; }
|
||
|
|
||
|
[JsonProperty("roles")]
|
||
|
public Optional<ulong[]> Roles { get; set; }
|
||
|
[JsonProperty("nick")]
|
||
|
public Optional<string> Nick { get; set; }
|
||
|
// This property is a Dictionary where each key is the ClientType
|
||
|
// and the values are the current client status.
|
||
|
// The client status values are all the same.
|
||
|
// Example:
|
||
|
// "client_status": { "desktop": "dnd", "mobile": "dnd" }
|
||
|
[JsonProperty("client_status")]
|
||
|
public Optional<Dictionary<string, string>> ClientStatus { get; set; }
|
||
|
}
|
||
|
}
|