Skip to content

Commit

Permalink
Add guild_scheduled_event_id to create stage endpoint (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherZane authored May 19, 2024
1 parent 0cdd015 commit 3f6c013
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ public class CreateStageInstanceJsonRestRequestContent : JsonModelRestRequestCon

[JsonProperty("send_start_notification")]
public Optional<bool> SendStartNotification;

[JsonProperty("guild_scheduled_event_id")]
public Optional<Snowflake> GuildScheduledEventId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ public sealed class CreateStageActionProperties
public Optional<PrivacyLevel> PrivacyLevel { internal get; set; }

public Optional<bool> NotifyEveryone { internal get; set; }
}

public Optional<Snowflake> GuildScheduledEventId { internal get; set; }
}
3 changes: 2 additions & 1 deletion src/Disqord.Rest/Extensions/RestClientExtensions.Stages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public static async Task<IStage> CreateStageAsync(this IRestClient client,
ChannelId = channelId,
Topic = topic,
PrivacyLevel = properties.PrivacyLevel,
SendStartNotification = properties.NotifyEveryone
SendStartNotification = properties.NotifyEveryone,
GuildScheduledEventId = properties.GuildScheduledEventId
};

var model = await client.ApiClient.CreateStageInstanceAsync(channelId, content, options, cancellationToken).ConfigureAwait(false);
Expand Down

0 comments on commit 3f6c013

Please sign in to comment.