From 6b09dc6a761de1a1f40d89a126671eafd09e25fc Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Sun, 24 Sep 2023 13:17:04 +0200 Subject: [PATCH] fix: bad request for scheduled events --- .../Rest/RestGuildScheduledEventPayloads.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/DisCatSharp/Net/Abstractions/Rest/RestGuildScheduledEventPayloads.cs b/DisCatSharp/Net/Abstractions/Rest/RestGuildScheduledEventPayloads.cs index 7097ceaf9f..86f313ca7a 100644 --- a/DisCatSharp/Net/Abstractions/Rest/RestGuildScheduledEventPayloads.cs +++ b/DisCatSharp/Net/Abstractions/Rest/RestGuildScheduledEventPayloads.cs @@ -59,6 +59,12 @@ internal sealed class RestGuildScheduledEventCreatePayload : ObservableApiObject /// [JsonProperty("image", NullValueHandling = NullValueHandling.Include)] public Optional CoverBase64 { get; set; } + + /// + /// Gets or sets the privacy level of the scheduled event. + /// + [JsonProperty("privacy_level")] + public int PrivacyLevel { get; } = 2; } /// @@ -119,4 +125,10 @@ internal sealed class RestGuildScheduledEventModifyPayload : ObservableApiObject /// [JsonProperty("status")] public Optional Status { get; set; } + + /// + /// Gets or sets the privacy level of the scheduled event. + /// + [JsonProperty("privacy_level")] + public int PrivacyLevel { get; } = 2; }