You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

IdentifyParams.cs 892 B

12345678910111213141516171819202122232425
  1. #pragma warning disable CS1591
  2. using Newtonsoft.Json;
  3. using System.Collections.Generic;
  4. namespace Discord.API.Gateway
  5. {
  6. [JsonObject(MemberSerialization = MemberSerialization.OptIn)]
  7. internal class IdentifyParams
  8. {
  9. [JsonProperty("token")]
  10. public string Token { get; set; }
  11. [JsonProperty("properties")]
  12. public IDictionary<string, string> Properties { get; set; }
  13. [JsonProperty("large_threshold")]
  14. public int LargeThreshold { get; set; }
  15. [JsonProperty("shard")]
  16. public Optional<int[]> ShardingParams { get; set; }
  17. [JsonProperty("presence")]
  18. public Optional<StatusUpdateParams> Presence { get; set; }
  19. [JsonProperty("guild_subscriptions")]
  20. public Optional<bool> GuildSubscriptions { get; set; }
  21. [JsonProperty("intents")]
  22. public Optional<int> Intents { get; set; }
  23. }
  24. }