Browse Source

Added some API placeholders

tags/docs-0.9
RogueException 9 years ago
parent
commit
186345dc7b
3 changed files with 17 additions and 1 deletions
  1. +10
    -0
      src/Discord.Net/API/Client/Common/ExtendedGuild.cs
  2. +6
    -0
      src/Discord.Net/API/Client/GatewaySocket/Events/Ready.cs
  3. +1
    -1
      src/Discord.Net/TaskManager.cs

+ 10
- 0
src/Discord.Net/API/Client/Common/ExtendedGuild.cs 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; }
}
}

+ 6
- 0
src/Discord.Net/API/Client/GatewaySocket/Events/Ready.cs 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; }
}
}

+ 1
- 1
src/Discord.Net/TaskManager.cs 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()


Loading…
Cancel
Save