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.

Channel.cs 979 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma warning disable CS1591
  2. using Newtonsoft.Json;
  3. namespace Discord.API.Rpc
  4. {
  5. internal class Channel
  6. {
  7. //Shared
  8. [JsonProperty("id")]
  9. public ulong Id { get; set; }
  10. [JsonProperty("type")]
  11. public ChannelType Type { get; set; }
  12. //GuildChannel
  13. [JsonProperty("guild_id")]
  14. public Optional<ulong> GuildId { get; set; }
  15. [JsonProperty("name")]
  16. public Optional<string> Name { get; set; }
  17. [JsonProperty("position")]
  18. public Optional<int> Position { get; set; }
  19. //IMessageChannel
  20. [JsonProperty("messages")]
  21. public Message[] Messages { get; set; }
  22. //VoiceChannel
  23. [JsonProperty("bitrate")]
  24. public Optional<int> Bitrate { get; set; }
  25. [JsonProperty("user_limit")]
  26. public Optional<int> UserLimit { get; set; }
  27. [JsonProperty("voice_states")]
  28. public ExtendedVoiceState[] VoiceStates { get; set; }
  29. }
  30. }