feature: Send presence on Identify payload (#1688)

* Send presence on identify

* Change CurrentUser presence
This commit is contained in:
Paulo
2020-11-22 00:42:48 -03:00
committed by GitHub
parent ec673e1863
commit 25d5d36772
4 changed files with 51 additions and 22 deletions

View File

@@ -15,6 +15,8 @@ namespace Discord.API.Gateway
public int LargeThreshold { get; set; }
[JsonProperty("shard")]
public Optional<int[]> ShardingParams { get; set; }
[JsonProperty("presence")]
public Optional<StatusUpdateParams> Presence { get; set; }
[JsonProperty("guild_subscriptions")]
public Optional<bool> GuildSubscriptions { get; set; }
[JsonProperty("intents")]

View File

@@ -1,4 +1,4 @@
#pragma warning disable CS1591
#pragma warning disable CS1591
using Newtonsoft.Json;
namespace Discord.API.Gateway
@@ -12,7 +12,7 @@ namespace Discord.API.Gateway
public long? IdleSince { get; set; }
[JsonProperty("afk")]
public bool IsAFK { get; set; }
[JsonProperty("game")]
public Game Game { get; set; }
[JsonProperty("activities")]
public Game[] Activities { get; set; }
}
}