41 lines
1.1 KiB
C#
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;
|
|||
|
}
|
|||
|
}
|