Files
Discord.Net/src/Discord.Net.WebSocket/API/Gateway/StatusUpdateParams.cs
Paulo 25d5d36772 feature: Send presence on Identify payload (#1688)
* Send presence on identify

* Change CurrentUser presence
2020-11-22 00:42:48 -03:00

19 lines
523 B
C#

#pragma warning disable CS1591
using Newtonsoft.Json;
namespace Discord.API.Gateway
{
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
internal class StatusUpdateParams
{
[JsonProperty("status")]
public UserStatus Status { get; set; }
[JsonProperty("since"), Int53]
public long? IdleSince { get; set; }
[JsonProperty("afk")]
public bool IsAFK { get; set; }
[JsonProperty("activities")]
public Game[] Activities { get; set; }
}
}