#pragma warning disable CS1591 using Newtonsoft.Json; namespace Discord.API.Rest { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] internal class CreateGuildChannelParams { [JsonProperty("name")] public string Name { get; } [JsonProperty("type")] public ChannelType Type { get; } [JsonProperty("parent_id")] public Optional CategoryId { get; set; } [JsonProperty("position")] public Optional Position { get; set; } //Text channels [JsonProperty("topic")] public Optional Topic { get; set; } [JsonProperty("nsfw")] public Optional IsNsfw { get; set; } //Voice channels [JsonProperty("bitrate")] public Optional Bitrate { get; set; } [JsonProperty("user_limit")] public Optional UserLimit { get; set; } public CreateGuildChannelParams(string name, ChannelType type) { Name = name; Type = type; } } }