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.

CreateGuildParams.cs 569 B

1234567891011121314151617181920212223
  1. #pragma warning disable CS1591
  2. using Newtonsoft.Json;
  3. namespace Discord.API.Rest
  4. {
  5. [JsonObject(MemberSerialization = MemberSerialization.OptIn)]
  6. internal class CreateGuildParams
  7. {
  8. [JsonProperty("name")]
  9. public string Name { get; }
  10. [JsonProperty("region")]
  11. public string RegionId { get; }
  12. [JsonProperty("icon")]
  13. public Optional<Image?> Icon { get; set; }
  14. public CreateGuildParams(string name, string regionId)
  15. {
  16. Name = name;
  17. RegionId = regionId;
  18. }
  19. }
  20. }