Archived
1
0
Fork 0
This repository has been archived on 2024-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
maki/Maki/Structures/Gateway/GatewayIdentification.cs
2017-05-14 14:02:51 +02:00

41 lines
1.1 KiB
C#

using Newtonsoft.Json;
namespace Maki.Structures.Gateway
{
/// <summary>
/// Discord Gateway Identification structure
/// </summary>
internal struct GatewayIdentification
{
/// <summary>
/// authentication token
/// </summary>
[JsonProperty("token")]
public string Token;
/// <summary>
/// connection properties
/// </summary>
[JsonProperty("properties")]
public GatewayIdentificationProperties Properties;
/// <summary>
/// whether this connection supports compression of the initial ready packet
/// </summary>
[JsonProperty("compress")]
public bool Compress;
/// <summary>
/// value between 50 and 250, total number of members where the gateway will stop sending offline members in the guild member list
/// </summary>
[JsonProperty("large_threshold")]
public int LargeThreshold;
/// <summary>
/// array of two integers (shard_id, num_shards), used for Guild Sharding
/// </summary>
[JsonProperty("shard")]
public int[] Shard;
}
}