Skip to content

Commit

Permalink
fix: bad request for scheduled events
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Sep 24, 2023
1 parent 6825d96 commit 6b09dc6
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ internal sealed class RestGuildScheduledEventCreatePayload : ObservableApiObject
/// </summary>
[JsonProperty("image", NullValueHandling = NullValueHandling.Include)]
public Optional<string> CoverBase64 { get; set; }

/// <summary>
/// Gets or sets the privacy level of the scheduled event.
/// </summary>
[JsonProperty("privacy_level")]
public int PrivacyLevel { get; } = 2;
}

/// <summary>
Expand Down Expand Up @@ -119,4 +125,10 @@ internal sealed class RestGuildScheduledEventModifyPayload : ObservableApiObject
/// </summary>
[JsonProperty("status")]
public Optional<ScheduledEventStatus> Status { get; set; }

/// <summary>
/// Gets or sets the privacy level of the scheduled event.
/// </summary>
[JsonProperty("privacy_level")]
public int PrivacyLevel { get; } = 2;
}

0 comments on commit 6b09dc6

Please sign in to comment.