49 lines
1.2 KiB
C#
49 lines
1.2 KiB
C#
using Maki.Structures.Channels;
|
|
using Maki.Structures.Guilds;
|
|
using Maki.Structures.Users;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Maki.Structures.Gateway
|
|
{
|
|
/// <summary>
|
|
/// Discord Gateway Ready structure
|
|
/// </summary>
|
|
internal struct GatewayReady
|
|
{
|
|
/// <summary>
|
|
/// gateway protocol version
|
|
/// </summary>
|
|
[JsonProperty("v")]
|
|
public int Version;
|
|
|
|
/// <summary>
|
|
/// user object (with email information)
|
|
/// </summary>
|
|
[JsonProperty("user")]
|
|
public User User;
|
|
|
|
/// <summary>
|
|
/// array of DM channel objects
|
|
/// </summary>
|
|
[JsonProperty("private_channels")]
|
|
public Channel[] PrivateChannels;
|
|
|
|
/// <summary>
|
|
/// array of Unavailable Guild objects
|
|
/// </summary>
|
|
[JsonProperty("guilds")]
|
|
public Guild[] UnavailableGuilds;
|
|
|
|
/// <summary>
|
|
/// used for resuming connections
|
|
/// </summary>
|
|
[JsonProperty("session_id")]
|
|
public string Session;
|
|
|
|
/// <summary>
|
|
/// used for debugging, array of servers connected to
|
|
/// </summary>
|
|
[JsonProperty("_trace")]
|
|
public string[] DebugTrace;
|
|
}
|
|
}
|