feature: Send presence on Identify payload (#1688)
* Send presence on identify * Change CurrentUser presence
This commit is contained in:
@@ -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")]
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user