Added some API placeholders

This commit is contained in:
RogueException
2015-12-23 23:03:37 -04:00
parent c1a2cd127f
commit 186345dc7b
3 changed files with 17 additions and 1 deletions

View File

@@ -20,7 +20,17 @@ namespace Discord.API.Client
public MemberPresence[] Presences { get; set; }
[JsonProperty("voice_states")]
public MemberVoiceState[] VoiceStates { get; set; }
[JsonProperty("large")]
public bool IsLarge { get; set; }
[JsonProperty("unavailable")]
public bool? Unavailable { get; set; }
//Unknown
[JsonProperty("splash")]
public object Splash { get; set; }
[JsonProperty("features")]
public object Features { get; set; }
[JsonProperty("emojis")]
public object Emojis { get; set; }
}
}

View File

@@ -28,5 +28,11 @@ namespace Discord.API.Client.GatewaySocket
public Channel[] PrivateChannels { get; set; }
[JsonProperty("heartbeat_interval")]
public int HeartbeatInterval { get; set; }
//Ignored
[JsonProperty("user_settings")]
public object UserSettings { get; set; }
[JsonProperty("user_guild_settings")]
public object UserGuildSettings { get; set; }
}
}

View File

@@ -19,7 +19,7 @@ namespace Discord
public bool WasUnexpected => _wasStopUnexpected;
private bool _wasStopUnexpected;
public Exception Exception => _stopReason.SourceException;
public Exception Exception => _stopReason?.SourceException;
private ExceptionDispatchInfo _stopReason;
public TaskManager()