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/GatewayReady.cs

50 lines
1.2 KiB
C#
Raw Normal View History

2017-05-14 12:02:51 +00:00
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;
}
}